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.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. @model Teknik.Areas.Upload.ViewModels.UploadViewModel
  2. <script>
  3. var encScriptSrc = '@Scripts.Url("~/bundles/cryptoWorker")';
  4. var aesScriptSrc = '@Scripts.Url("~/bundles/crypto")';
  5. var generateDeleteKeyURL = '@Url.SubRouteUrl("upload", "Upload.Action", new { action= "GenerateDeleteKey" })';
  6. var uploadURL = '@Url.SubRouteUrl("upload", "Upload.Download")';
  7. var maxUploadSize = @(Model.Config.UploadConfig.MaxUploadSize / 100000);
  8. </script>
  9. @Styles.Render("~/Content/upload")
  10. <div class="container">
  11. <div class="row text-center">
  12. <form action="@Url.SubRouteUrl("upload", "Upload.Action", new { action = "Upload" })" class="dropzone" id="TeknikUpload" name="TeknikUpload" enctype="multipart/form-data">
  13. @Html.AntiForgeryToken()
  14. <input name="iv" id="iv" type="hidden" />
  15. <div class="dz-message text-center" id="upload_message">
  16. <div class="row">
  17. <div class="col-sm-12">
  18. <h1>Drop your files here</h1>
  19. </div>
  20. </div>
  21. <div class="row">
  22. <div class="col-sm-12">
  23. <h2>Or just click here</h2>
  24. </div>
  25. </div>
  26. <div class="row">
  27. <div class="col-sm-12">
  28. <h3>Your Choice</h3>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="fallback text-center">
  33. <div class="row">
  34. <div class="col-sm-12">
  35. <input name="file" type="file" class="form-control" multiple />
  36. </div>
  37. </div>
  38. </div>
  39. </form>
  40. </div>
  41. <br />
  42. <div class="progress">
  43. <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>
  44. </div>
  45. <div class="container" id="upload-links">
  46. </div>
  47. <br />
  48. <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>
  49. <div class="text-center">
  50. 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>
  51. <br />
  52. <br />
  53. You can now upload your screenshots automatically using <a href="https://github.com/KittyKatt/screenFetch">Screenfetch</a>!
  54. </div>
  55. </div>
  56. @Scripts.Render("~/bundles/upload")