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 ;
}
if (uploadRef.current.state.fileList[0].raw.type !== "application/zip") {
console.log('upload', uploadRef.current);
if (!["application/zip", "application/x-zip-compressed"].includes(uploadRef.current.state.fileList[0].raw.type)) {
Message({
message: "Only zip file can be uploaded",
type: "warning",