diff --git a/static/base.js b/static/base.js index 64f6f8f..235beae 100644 --- a/static/base.js +++ b/static/base.js @@ -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") })