Hello awesome Supabase builders! I'm having a prob...
# help
s
Hello awesome Supabase builders! I'm having a problem uploading videos from my react native application to Supabase. After I capture a video, I get it's URI and then upload it to my Supabase bucket with the following code: const { data, error } = await supabaseClient.storage .from("public") .upload(fileName, decode(videoUri), { contentType: "video/mov", }); console.log("ERROR ADDING VIDEO:", error); console.log("SUCCESS!", data); Supabase returns the following message: SUCCESS! Object { "Key": "public/01CE6CB0-44BA-4FF4-B7D5-77852735732B.mov", } However, once I go to the supabase console, I'm unable to view the video, and when I download the video, Quicktime (on my M1 Chip Mac) tells me it can't play it. Does anyone know why the video isn't properly uploading? Or if it is, why I can't access it after upload? Thanks for your help!
n
Hello @Sobhan! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
s
check out these sample apps

https://www.youtube.com/watch?v=i9QZQy8GZn8

https://dev.to/aaronksaunders/how-to-upload-to-storage-buckets-and-write-data-with-remix-and-supabase-3l7c
n
sobhan (2022-04-05)