storage
storage copied to clipboard
uploader: `invalid_mime_type` responds with 422 instead of 415
Bug report
- [x] I confirm this is a bug with Supabase, not with my own application.
- [x] I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
On failing MIME type validation, upload throws a StorageBackendError with status code set to 422.
Additional context
A more suitable status code might be 415, as per RFC9110.
@imageck thanks for this, we'll amend the status code!
This is now being fixed