improved validators

pull/692/head
Jingyi Niu 2024-04-18 08:38:54 +08:00
parent a5279547bc
commit 693e280fd8
1 changed files with 11 additions and 0 deletions

View File

@ -183,6 +183,17 @@ function uploadFileToS3(files, groupName, username) {
document.querySelector("#aws_api_url > label > textarea")["value"]: "";
const apiToken = document.querySelector("#aws_api_gateway_url_token > label > textarea")?
document.querySelector("#aws_api_gateway_url_token > label > textarea")["value"]: "";
if (!apiGatewayUrl) {
alert("Please load the API Gateway URL by click refresh button.");
return;
}
if (!apiToken) {
alert("Please load the API Gateway Token by click refresh button.");
return;
}
const presignedUrls = [];
const filenames = [];
const fileArrays = [];