Skip to content
This repository was archived by the owner on Jun 29, 2025. It is now read-only.

Commit 75f57a4

Browse files
committed
fix: dropzone rejection on chrome
1 parent eb142b7 commit 75f57a4

File tree

3 files changed

+14
-20
lines changed

3 files changed

+14
-20
lines changed

frontend/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
"dependencies": {
1212
"@emotion/react": "^11.10.5",
1313
"@emotion/server": "^11.10.0",
14-
"@mantine/core": "^5.9.1",
15-
"@mantine/dropzone": "^5.9.1",
16-
"@mantine/form": "^5.9.1",
17-
"@mantine/hooks": "^5.9.1",
18-
"@mantine/modals": "^5.9.1",
19-
"@mantine/next": "^5.9.1",
20-
"@mantine/notifications": "^5.9.1",
14+
"@mantine/core": "^5.9.2",
15+
"@mantine/dropzone": "^5.9.2",
16+
"@mantine/form": "^5.9.2",
17+
"@mantine/hooks": "^5.9.2",
18+
"@mantine/modals": "^5.9.2",
19+
"@mantine/next": "^5.9.2",
20+
"@mantine/notifications": "^5.9.2",
2121
"axios": "^1.2.0",
2222
"cookies-next": "^2.1.1",
2323
"file-saver": "^2.0.5",

frontend/src/components/upload/Dropzone.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ const Dropzone = ({
4545
return (
4646
<div className={classes.wrapper}>
4747
<MantineDropzone
48-
// Temporary fix for Dropzone issue (https://github.com/mantinedev/mantine/issues/3115)
49-
getFilesFromEvent={(e) => {
50-
return Promise.resolve([
51-
...((e.target as EventTarget & HTMLInputElement)?.files as any),
52-
]);
53-
}}
5448
maxSize={parseInt(config.get("MAX_FILE_SIZE"))}
5549
onReject={(e) => {
5650
toast.error(e[0].errors[0].message);

0 commit comments

Comments
 (0)