added maxfilesize label and error handling.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-01-26 12:40:39 -07:00
parent 1c2f83026c
commit 03029981fd
10 changed files with 24 additions and 0 deletions

View File

@@ -278,6 +278,10 @@ function uploadVehicleFilesAsync(event) {
if (response.length > 0) {
uploadedFiles.push.apply(uploadedFiles, response);
}
},
error: function () {
sloader.hide();
errorToast("An error has occurred, please check the file size and try again later.")
}
});
}