Hello,
I followed this video and the process works fine for Supabase. The issue is Supabase is saving the file in the bucket with a junk name.
Here's an example URL from Supabase after the image upload:
https://ewwlkzjfksiwdjaidkskfghwlswzsdtaix.supabase.co/storage/v1/object/public/bucketname/FFUploadedFile(name: 17039385603375949592000.jpg, bytes: 378907, height: null, width: null, blurHash: null,)
The URL works and delivers an image, but this path is unusable.
I want to set the name on upload, then I take an action to link it in the images table and to a user or something else.
I checked the API return value from the image upload and here's the JSON:
{
"Id":bf90352de-3fe6-4205-9289-84fc55cc787ce,
"Key":"bucketname/FFUploadedFile(name":170496332185000.jpg,
"bytes":496367,
"height":null,
"width":null,
"blurHash":null,
")"
}
Clearly, Supabase is giving this file an ID, but the name in the bucket remains no good.
Any ideas out there?