Skip to content

Commit

Permalink
fix: remove multi file type check
Browse files Browse the repository at this point in the history
  • Loading branch information
Aralhi committed Oct 18, 2023
1 parent b63f26d commit c0c02a9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions components/agent/my-plugins.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ function MyPlugins() {
message.error('Please select the *.zip,*.rar file');
return;
}
if (!/\.(zip|rar)$/.test(info.file.name ?? '')) {
message.error('File type must be zip or rar');
return;
}
try {
const file = info.file;
setUploading(true);
Expand Down

0 comments on commit c0c02a9

Please sign in to comment.