|
@@ -4539,7 +4539,7 @@
|
|
|
console.log("Upload Target", fileObject, rootpath);
|
|
|
uploadFile(fileObject, undefined, currentPath + rootpath);
|
|
|
*/
|
|
|
- console.log(currentPath + rootpath);
|
|
|
+ //console.log(currentPath + rootpath);
|
|
|
uploadFile(fileObject, undefined, currentPath + base);
|
|
|
}
|
|
|
|
|
@@ -4668,6 +4668,9 @@
|
|
|
if (taskUUID == undefined){
|
|
|
//If this is a new file to be uploaded
|
|
|
taskUUID = appendUploadFileItem(file.name, file.size);
|
|
|
+ setTimeout(function(){
|
|
|
+ updateUploadFileCount();
|
|
|
+ }, 100);
|
|
|
}
|
|
|
|
|
|
//Push to upload pending list if the max concurrent upload is reached
|
|
@@ -4871,20 +4874,6 @@
|
|
|
|
|
|
|
|
|
return
|
|
|
-
|
|
|
- /*
|
|
|
- msgbox("caution","Upload failed due to unknown reason");
|
|
|
- //Something went wrong. Set the color to red
|
|
|
- $(".uploadTask").each(function(){
|
|
|
- if ($(this).attr("taskID") == taskUUID){
|
|
|
- //Update this progress bar to completed
|
|
|
- $(this).find(".bar").css("width","100%");
|
|
|
- $(this).find(".progress").attr("class","ts tiny negative progress");
|
|
|
- $(this).find(".uploadTaskRemoveIcon").show();
|
|
|
- $(this).addClass("ended");
|
|
|
- }
|
|
|
- });
|
|
|
- */
|
|
|
};
|
|
|
|
|
|
}else{
|
|
@@ -4898,6 +4887,9 @@
|
|
|
if (taskUUID == undefined){
|
|
|
//If this is a new file to be uploaded
|
|
|
taskUUID = appendUploadFileItem(file.name, file.size);
|
|
|
+ setTimeout(function(){
|
|
|
+ updateUploadFileCount();
|
|
|
+ }, 100);
|
|
|
}
|
|
|
|
|
|
//Updates 22-10-2020
|