add x-zip-compressed file type check for model upload

This commit is contained in:
songyih 2021-01-18 17:46:29 -08:00
parent ff8d82c898
commit 067a7569fe
1 changed files with 2 additions and 2 deletions

View File

@ -145,8 +145,8 @@ function MenuBar (props) {
}); });
return ; return ;
} }
console.log('upload', uploadRef.current);
if (uploadRef.current.state.fileList[0].raw.type !== "application/zip") { if (!["application/zip", "application/x-zip-compressed"].includes(uploadRef.current.state.fileList[0].raw.type)) {
Message({ Message({
message: "Only zip file can be uploaded", message: "Only zip file can be uploaded",
type: "warning", type: "warning",