|
@@ -4928,6 +4928,14 @@
|
|
formData.append('file', file);
|
|
formData.append('file', file);
|
|
formData.append('path', uploadCurrentPath);
|
|
formData.append('path', uploadCurrentPath);
|
|
|
|
|
|
|
|
+ //Hide the cancel upload task button
|
|
|
|
+ $(".uploadTask").each(function(){
|
|
|
|
+ if ($(this).attr("taskID") == taskUUID){
|
|
|
|
+ //This is the target upload task object. Hide its close button
|
|
|
|
+ $(this).find(".uploadTaskRemoveIcon").hide();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
xhr.open('POST', url, true)
|
|
xhr.open('POST', url, true)
|
|
xhr.upload.addEventListener("progress", function(e) {
|
|
xhr.upload.addEventListener("progress", function(e) {
|
|
var progress = (e.loaded * 100.0 / e.total) || 100;
|
|
var progress = (e.loaded * 100.0 / e.total) || 100;
|