question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Supabase storage dashboard does not show subfolder structure

See original GitHub issue

I 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.

image

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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joshenlimcommented, Aug 2, 2021

ahh okay gotcha on this! thank you so much for the reproduce steps @KrisCoulson, we’ll look into a fix for this 😃

1reaction
KrisCoulsoncommented, Aug 2, 2021

@joshenlim I re-opened as I figured out what the cause was and it continues to happen.

So on supabase I have 2 bucket

  • event-logos
  • team-logos

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Storage - Supabase
Folders are a way to organize your files (just like on your computer). There is no right or wrong way to organize your...
Read more >
Access Control - Supabase
Access control for Storage is mapped to CRUD operations on the buckets and objects table via RLS policies.
Read more >
Storage is now available in Supabase
Object metadata and security rules are stored in your Postgres database. We have built a powerful file explorer right into the dashboard, and ......
Read more >
Supabase Documentation
This reference documents every object and method available in Supabase's isomorphic JavaScript library, supabase-js. You can use supabase-js to interact ...
Read more >
Supabase Storage now in Beta
Today, we are launching the Sequel to Storage Alpha (I bet you didn't see that coming): Storage Beta! Streaming Media. We've added support...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found