Storage Drag and Drop No Longer Respects Folders
Describe the bug For local development, I often have to reseed my storage buckets with mock images and videos when resetting my database. I keep the exact folder structure preserved on my machine to be able to drag and drop these local resources into the UI to quickly upload all the placeholder content.
Somewhere between cli v1.78.2 and 1.87.3, the drag and drop no longer uploads the folder paths. It only pulls out the files recursively from my directories and places them at the root
To Reproduce Steps to reproduce the behavior:
- Go to supabase storage
- Create a local directory with an image or video '/folder1/video.mp4'
- Drag and drop folder1 into a bucket in the storage ui
Expected behavior The upload respects the folder structure and uploads the folder and file resulting in {bucketname}/folder1/video.mp4 as the path to the file
Actual behavior The upload is removing folder1 and uploading as {bucketname}/video.mp4.
System information
Rerun the failing command with --create-ticket flag.
- Ticket ID: NA
- Version of OS: MacOS 14.4
- Version of CLI: v.187.3
- Version of Docker: Docker version 26.1.3
- Versions of services:
supabase/postgres │ 15.1.1.61 │ - supabase/gotrue │ v2.151.0 │ - postgrest/postgrest │ v12.2.0 │ - supabase/realtime │ v2.29.15 │ - supabase/storage-api │ v1.0.6 │ - supabase/edge-runtime │ v1.55.0 │ - supabase/studio │ 20240701-05dfbec │ - supabase/postgres-meta │ v0.83.2 │ - supabase/logflare │ 1.4.0 │ - supabase/supavisor │ 1.1.56 │ -