Browse Source

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

pull/111/head
Teknikode 5 years ago
parent
commit
1fe63a06bd
  1. 7
      Teknik/Areas/Upload/Scripts/Upload.js

7
Teknik/Areas/Upload/Scripts/Upload.js

@ -1,4 +1,4 @@ @@ -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) @@ -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) { @@ -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