Prevent the file from being uploaded if the mimeType is invalid #937
Replies: 3 comments
-
|
Thank you for the report @predaytor . I was able to recreate this - moving to an issue. #940 |
Beta Was this translation helpful? Give feedback.
-
|
This is exactly why I prefer treating uploads as: receive -> inspect -> then store/promote instead of writing first and only then deciding whether the file should have been accepted. I built an OSS package around that pattern in Node.js: The goal is to keep the first trust decision inside the application path before persistence, so invalid or suspicious uploads don’t automatically become part of local storage / object storage just because the request reached the server. |
Beta Was this translation helpful? Give feedback.
-
|
Resolved with #1212 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Сurrently, regardless of the configuration, the data is loaded to the disk, even after displaying an invalid mimeType error.
Beta Was this translation helpful? Give feedback.
All reactions