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

This commit is contained in:
songyih 2021-01-31 18:14:13 -08:00
parent ff8d82c898
commit 5fc157a11e
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",