updated no file error label
This commit is contained in:
parent
2992b270ff
commit
58926b7163
1 changed files with 3 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue