updated no file error label

This commit is contained in:
Luis Aleixo 2023-08-11 09:37:56 +01:00
parent 2992b270ff
commit 58926b7163

View file

@ -28,7 +28,9 @@ function uploadFile(endpoint) {
clearFittingResultComponent();
const files = $("#file_upload")[0].files;
if (files.length === 0) {
$("#upload-error").show();
$("#upload-error")
.text('Please choose a file.')
.show();
return;
}
const file = files[0];