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
No matter what I've tried, uploading the
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!
I have a function in a react native app that converts a data url formatted image into a
Blob (data:image/jpeg;base64,${image} where image is a base64 encoded photo) - the conversion happens via a fetch.then -> response.blob() call. No matter what I've tried, uploading the
Blob using supabase.storage.from(bucketName).upload(...) always fails with {"error": "InvalidRequest", "message": "No content provided", "statusCode": "400"} error. The Blob being uploaded has a non-zero size and a valid .type (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!