Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When restricting MIME Types, Folders can't be created in Supabase UI #26359

Open
streco opened this issue May 15, 2024 · 2 comments
Open

When restricting MIME Types, Folders can't be created in Supabase UI #26359

streco opened this issue May 15, 2024 · 2 comments
Labels
bug Something isn't working frontend Related to supabase dashboard storage

Comments

@streco
Copy link

streco commented May 15, 2024

When using a MIME Type restriction, when you try and create folders in the Supabase UI, it allows you to input a name, submit it, and it renders in the view as if the folder is created, but the folder is not actually created (confirmed by page refresh)

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to storage and create a new bucket
  2. Edit the bucket and set "Allowed MIME type" to any value
  3. Create a folder

Expected Result:
Several options:

  1. Show error message that "Folder cannot be created because it's MIME Type does not match the restriction".
  2. Have a checkbox to include folders from MIME type checks
  3. Always exclude folders from MIME type restrictions

This is a minor UX issue

@streco streco added the bug Something isn't working label May 15, 2024
@Meyazhagan
Copy link

Meyazhagan commented May 20, 2024

When new folder is created, a placeholder file is added to path .emptyFolderPlaceholder. And getting MIME type errors.
We need to skip type check for this file.

@encima encima added the storage label May 29, 2024
@Hallidayo Hallidayo added the frontend Related to supabase dashboard label May 30, 2024
@Hallidayo
Copy link
Contributor

@Meyazhagan - Yep I can see this as well in the network panel:

Screenshot 2024-05-30 at 20 59 06

Seems like a check is needed here when the folder is created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Related to supabase dashboard storage
Projects
Development

No branches or pull requests

4 participants