Browse Source

Fixed upload script sending 'null' and not a null value

tags/3.0.0
Teknikode 3 years ago
parent
commit
1fe63a06bd
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      Teknik/Areas/Upload/Scripts/Upload.js

+ 4
- 3
Teknik/Areas/Upload/Scripts/Upload.js View File

@@ -1,4 +1,4 @@
$(document).ready(function () {
$(document).ready(function () {
$("#upload-links").css('display', 'none', 'important');
$("#upload-links").html('');

@@ -298,7 +298,8 @@ function uploadFile(data, key, iv, filetype, fileExt, fileID, encrypt)
var fd = new FormData();
fd.append('fileType', filetype);
fd.append('fileExt', fileExt);
fd.append('iv', iv);
if (iv != null)
fd.append('iv', iv);
fd.append('keySize', keySize);
fd.append('blockSize', blockSize);
fd.append('data', blob);
@@ -404,4 +405,4 @@ function setProgress(fileID, percentage, classes, barMessage, title) {
progress.find('#progress-bar').html(barMessage);
progress.find('#progress-info').html(title);
}
}
}

Loading…
Cancel
Save