Add Indication for upload

This commit is contained in:
2019-05-27 15:49:17 +05:30
parent a81c26b5eb
commit 9655281a78

View File

@@ -130,6 +130,7 @@ $(document).ready(()=>{
$("#fileLabel").html(e.target.files[0].name);
})
$(".done-upload").click(()=>{
$("#fileLabel").html("Uploading")
$("#upload-directory").val(currDir.loc)
$.ajax("/files/upload",{
method: 'post',
@@ -139,6 +140,7 @@ $(document).ready(()=>{
success:msg=>{
alert("Uploaded")
closeUploadWindow();
populateContents();
},
error:msg=>alert("Error")
})