Supabase storage dashboard does not show subfolder structure
See original GitHub issueI think there might be a bug in the supabase storage dashboard unless I am doing something wrong.
I am uploading an image and I believe nesting it in a “folder” so all images get uploaded under the event they are assigned to.
const { data, error } = await client.storage
.from('team-logos')
.upload(`${org}/${eventId}/${v4()}`, formData.logoFile[0], {
cacheControl: 'no-cache',
upsert: true,
})
When doing this there is no subfolder generated in the dashboard UI. The org “folder”(teamstream) got created. But the eventID subfolder does not display in the UI.
With that being said. The client returns successfully with the correct URL to the image and the image is uploaded. And I can view the image correctly. There is just no UI that shows my image in the Supabase dashboard so I can’t navigate the uploads
It might be worth noting creating a subfolder from the dashboard UI looks like it works and is properly displayed in the dashboard. One annoying thing though if you create a subfolder there doesn’t seem to be a way to delete the subfolder. Clicking on the 3 ellipses just says “no options”
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
ahh okay gotcha on this! thank you so much for the reproduce steps @KrisCoulson, we’ll look into a fix for this 😃
@joshenlim I re-opened as I figured out what the cause was and it continues to happen.
So on supabase I have 2 bucket
Both are public buckets. When I save the to event logos the path looks like this
/event-logos/${eventCode}
when I save to team logos
/team-logos/${eventCode}/${uuid}
In
event-logos
the eventCode seems to overwrite the subfolder since they are the same name. The team-logos are obviously still stored in storage but they are not visible in the dashboard. The reason I thought it was fixed is because the subfolders were showing for the team-logos but that was because I wasn’t uploading the event-logo when I was testing it.I think an easy fix on my end for now which I wasn’t currently doing is to append the file type to the end of the upload. That will at least allow the subfolders to show but not sure if this intended or a bug