Ā© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•13mo ago•
5 replies
eru_fear

Getting "No Content Provided" when trying to upload an image to storage

Would love some help with getting uploads to work with storage.

I have a function in a react native app that converts a data url formatted image into a
Blob
Blob
(
data:image/jpeg;base64,${image}
data:image/jpeg;base64,${image}
where
image
image
is a base64 encoded photo) - the conversion happens via a
fetch.then -> response.blob()
fetch.then -> response.blob()
call.

No matter what I've tried, uploading the
Blob
Blob
using
supabase.storage.from(bucketName).upload(...)
supabase.storage.from(bucketName).upload(...)
always fails with
{"error": "InvalidRequest", "message": "No content provided", "statusCode": "400"}
{"error": "InvalidRequest", "message": "No content provided", "statusCode": "400"}
error. The
Blob
Blob
being uploaded has a non-zero
size
size
and a valid
.type
.type
(
image/jpeg
image/jpeg
)

I have relaxed the RLS policy on the bucket to allow all access to select and insert. Uploading the raw base64 image (without the data url prefix) works but of course, this isn't really a valid image, uploading to the bucket directly from the UI also works.

Would appreciate any help with this, I've tried just about everything I can!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Getting 400 status when trying to upload a file to storage bucket
SupabaseSSupabase / help-and-questions
4y ago
image upload content type
SupabaseSSupabase / help-and-questions
3y ago
Upload image faild on storage
SupabaseSSupabase / help-and-questions
8mo ago
i have an issue on supabase storage image upload
SupabaseSSupabase / help-and-questions
4w ago