Supabase Storage: MIME Type Not Allowed
The HEIC or PDF attachment is rejected before saving the file.
How to identify the source of the problem
Check the MIME limitations in the bucket configuration and the real Content-Type of the uploaded file.
Compare the result for the authorized and unauthorised user, project name and exact error code.
Repair steps
Add only the necessary types to allowlist or make a controlled conversion after format verification.
How to Test Solution
The allowed file passes, and the unauthorised type is still blocked.
Security and restrictions
Change permissions and scheme first on test data with backup. Do not put service role in your browser.