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!