The next generation of the Teknik Services. Written in ASP.NET.
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.
 
 
 
 

39 lines
1.4 KiB

@model Teknik.Areas.Upload.ViewModels.DownloadViewModel
<script>
var encScriptSrc = '@Scripts.Url("~/bundles/cryptoWorker")';
var aesScriptSrc = '@Scripts.Url("~/bundles/crypto")';
var downloadDataUrl = '@Url.SubRouteUrl("upload", "Upload.Action", new { action = "DownloadData" })';
var fileName = '@Model.FileName';
var fileType = '@Model.ContentType';
var iv = '@Model.IV';
var chunkSize = @(Model.Config.UploadConfig.ChunkSize);
</script>
<!-- Add UI for downloading info -->
<div class="container">
<div class="page-header text-center">
<h1><strong>@Model.FileName</strong></h1>
</div>
<div class="row">
<div class="col-sm-6 col-sm-offset-3">
<div class="center-block">
<dl class="dl-horizontal">
<dt>Content-Type</dt>
<dd>@Model.ContentType</dd>
<dt>File Size</dt>
<dd>@(Utility.GetBytesReadable(Model.ContentLength))</dd>
</dl>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="progress" id="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 0%">0%</div>
</div>
</div>
</div>
</div>
@Scripts.Render("~/bundles/download")