Browse Source

Fixed missing file name from delete page.

master
Teknikode 7 years ago
parent
commit
0fcabc027b
  1. 2
      Teknik/Areas/Upload/Controllers/UploadController.cs
  2. 5
      Teknik/Areas/Upload/Scripts/EncryptionWorker.js

2
Teknik/Areas/Upload/Controllers/UploadController.cs

@ -136,7 +136,7 @@ namespace Teknik.Areas.Upload.Controllers @@ -136,7 +136,7 @@ namespace Teknik.Areas.Upload.Controllers
if (upload != null)
{
DeleteViewModel model = new DeleteViewModel();
model.File = file;
if (!string.IsNullOrEmpty(upload.DeleteKey) && upload.DeleteKey == key)
{
string filePath = upload.FileName;

5
Teknik/Areas/Upload/Scripts/EncryptionWorker.js

@ -73,11 +73,6 @@ @@ -73,11 +73,6 @@
total: bytes.length - 1
};
// convert array to ArrayBuffer
//var arBuf = _arrayToArrayBuffer(prog);
//throw JSON.stringify({ dataLength: prog.length, len: bytes.length, finalLength: arBuf.byteLength })
// Now package it into a mesage to send home
var objData =
{

Loading…
Cancel
Save