The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Index.cshtml 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @model Teknik.Areas.Upload.ViewModels.UploadViewModel
  2. <script>
  3. var generateDeleteKeyURL = '@Url.SubRouteUrl("upload", "Upload.Action", new { action= "GenerateDeleteKey" })';
  4. var uploadURL = '@Url.SubRouteUrl("upload", "Upload.Download")';
  5. var maxUploadSize = @(Model.Config.UploadConfig.MaxUploadSize / 100000);
  6. </script>
  7. @Styles.Render("~/Content/upload")
  8. <div class="container">
  9. <div class="row text-center">
  10. <form action="@Url.SubRouteUrl("upload", "Upload.Upload")" class="dropzone" id="TeknikUpload" name="TeknikUpload" enctype="multipart/form-data">
  11. @Html.AntiForgeryToken()
  12. <div class="dz-message text-center" id="upload_message">
  13. <div class="row">
  14. <div class="col-sm-12">
  15. <h1>Drop your files here</h1>
  16. </div>
  17. </div>
  18. <div class="row">
  19. <div class="col-sm-12">
  20. <h2>Or just click here</h2>
  21. </div>
  22. </div>
  23. <div class="row">
  24. <div class="col-sm-12">
  25. <h3>Your Choice</h3>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="fallback text-center">
  30. <div class="row">
  31. <div class="col-sm-12">
  32. <input name="file" type="file" class="form-control" multiple />
  33. </div>
  34. </div>
  35. </div>
  36. </form>
  37. </div>
  38. <br />
  39. <div class="progress">
  40. <div class="progress-bar progress-bar-success" id="progressBar" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 0%">0%</div>
  41. </div>
  42. <div class="container" id="upload-links">
  43. </div>
  44. <br />
  45. <div class="well text-center">Each file is encrypted on upload using an AES-256-CBC cipher. If you wish to view the file decrypted, you must use the direct Teknik link.</div>
  46. <div class="text-center">
  47. Useful Tools: <a href="http://git.teknik.io/Teknikode/Tools/src/master/Upload">Upload Scripts and Utilities</a> | <a href="https://github.com/jschx/poomf">Poomf Uploader</a>
  48. <br />
  49. <br />
  50. You can now upload your screenshots automatically using <a href="https://github.com/KittyKatt/screenFetch">Screenfetch</a>!
  51. </div>
  52. </div>
  53. @Scripts.Render("~/bundles/upload")