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.

Download.cshtml 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @model Teknik.Areas.Upload.ViewModels.DownloadViewModel
  2. @using Teknik.Utilities
  3. <script>
  4. var encScriptSrc = '@Scripts.Url("~/bundles/cryptoWorker")';
  5. var aesScriptSrc = '@Scripts.Url("~/bundles/crypto")';
  6. var downloadDataUrl = '@Url.SubRouteUrl("upload", "Upload.Action", new { action = "DownloadData" })';
  7. var fileName = '@Model.FileName';
  8. var fileType = '@Model.ContentType';
  9. var iv = '@Model.IV';
  10. var chunkSize = @(Model.Config.UploadConfig.ChunkSize);
  11. </script>
  12. <!-- Add UI for downloading info -->
  13. <div class="container">
  14. <div class="page-header text-center">
  15. <h1><strong>@Model.FileName</strong></h1>
  16. </div>
  17. <div class="row">
  18. <div class="col-sm-6 col-sm-offset-3">
  19. <div class="center-block">
  20. <dl class="dl-horizontal">
  21. <dt>Content-Type</dt>
  22. <dd>@Model.ContentType</dd>
  23. <dt>File Size</dt>
  24. <dd>@(StringHelper.GetBytesReadable(Model.ContentLength))</dd>
  25. </dl>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="row" id="progress-panel">
  30. <div class="col-sm-12">
  31. <div class="row">
  32. <div class="col-sm-12 text-center">
  33. <div class="progress" id="progress">
  34. <div id="progress-bar" class="progress-bar" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 0%"></div>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="row">
  39. <div class="col-sm-10 col-sm-offset-1 text-center">
  40. <span id="progress-info"></span>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. @Scripts.Render("~/bundles/download")