© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
24 replies
NuggetPirate

storage.from.list(); returns empty

export async function getProspectFileList(): Promise<any> {
  const { data, error } = await supabaseClient.storage
    .from('prospects')
    .list();
  if (error) return error.message;
  console.log("got the data", data);
  return data;
}
export async function getProspectFileList(): Promise<any> {
  const { data, error } = await supabaseClient.storage
    .from('prospects')
    .list();
  if (error) return error.message;
  console.log("got the data", data);
  return data;
}
this returns an empty array. but I see files in the
prospects
prospects
bucket. any ideas?
unknown.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

.emptyFolderPlaceholder shows up in supabase.storage.list() call
SupabaseSSupabase / help-and-questions
3y ago
query returns empty array
SupabaseSSupabase / help-and-questions
13mo ago
many-to-many returns empty array
SupabaseSSupabase / help-and-questions
13mo ago
Supabase storage list not working
SupabaseSSupabase / help-and-questions
8mo ago