add x-zip-compressed file type check for model upload
This commit is contained in:
parent
ff8d82c898
commit
5fc157a11e
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue