storage icon indicating copy to clipboard operation
storage copied to clipboard

uploader: `invalid_mime_type` responds with 422 instead of 415

Open imageck opened this issue 2 years ago • 1 comments

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 avatar May 15 '23 15:05 imageck

@imageck thanks for this, we'll amend the status code!

fenos avatar May 16 '23 13:05 fenos

This is now being fixed

fenos avatar Apr 28 '24 07:04 fenos