We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f19d67 + 70294de commit d594091Copy full SHA for d594091
public/js/script.js
@@ -58,6 +58,7 @@ $('#upload-btn').click(function () {
58
success: function (data, statusText, xhr, $form) {
59
resetUploadForm();
60
refreshFoldersAndItems(data);
61
+ displaySuccessMessage(data);
62
},
63
error: function (jqXHR, textStatus, errorThrown) {
64
displayErrorResponse(jqXHR);
@@ -156,6 +157,12 @@ function displayErrorResponse(jqXHR) {
156
157
notify('<div style="max-height:50vh;overflow: scroll;">' + jqXHR.responseText + '</div>');
158
}
159
160
+function displaySuccessMessage(data){
161
+ if(data == 'OK'){
162
+ notify('File Uploaded Successfully');
163
+ }
164
+}
165
+
166
var refreshFoldersAndItems = function (data) {
167
loadFolders();
168
if (data != 'OK') {
0 commit comments