storgae.from.list returning all files, but without path
hi, i upload my files with a path like this:
const filePath =
in another part, i want a list of all files of path's in a bucket.
my guess, I need to do this:
But here, i only get an id and a name, but not the full path. i am missing the year and month. So this list is kinda useless, because i cant resolve the year and month. How ca i get the path, without sending a request for each image to the database, after I recived the list?
Here is a sample result:
const filePath =
${date.getFullYear()}/${date.getMonth()}/${uuid()}.${file.fileObj.name.split('.').pop()}in another part, i want a list of all files of path's in a bucket.
my guess, I need to do this:
const {data: files, error} = await supabase.storage.from('bucketid').list();But here, i only get an id and a name, but not the full path. i am missing the year and month. So this list is kinda useless, because i cant resolve the year and month. How ca i get the path, without sending a request for each image to the database, after I recived the list?
Here is a sample result: