You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
storage.from().list() without prefix argument returns empty result. According to types and docs it is optional but it is required in the api. If I use empty string it works as intended.
EDIT: After further inspection I found out that it is not caused by path being empty, but search options contains limit: 0 by default which causes the empty array.
Bug report
Describe the bug
storage.from().list() without prefix argument returns empty result. According to types and docs it is optional but it is required in the api. If I use empty string it works as intended.
EDIT: After further inspection I found out that it is not caused by path being empty, but search options contains limit: 0 by default which causes the empty array.
supabase-js/src/lib/storage/StorageFileApi.ts
Line 6 in 1b82937
To Reproduce
supabase.storage.from("gallery").list()
supabase.storage.from("gallery").list("", { limit: 10 )
Expected behavior
If the list function is called without prefix, it should use "" instead.
System information
The text was updated successfully, but these errors were encountered: