© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
12 replies
adam boukhris

problem with uploading multiple files

when i upload a single file it works , but when i use a loop to upload multiple files (i'm using
sveltekit
sveltekit
):
for (let i = 0; i < thumbnails.length; i++) {
      const { data, error } = await supabase.storage
      .from('All files')
      .upload(`work/${thumbnails[i].name}`, thumbnails[i], {
          contentType: thumbnails[i].type,
      })
      console.log(data)
    }    
for (let i = 0; i < thumbnails.length; i++) {
      const { data, error } = await supabase.storage
      .from('All files')
      .upload(`work/${thumbnails[i].name}`, thumbnails[i], {
          contentType: thumbnails[i].type,
      })
      console.log(data)
    }    
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

uploading multiple files
SupabaseSSupabase / help-and-questions
4y ago
Buckets storage randomly uploading files with 0 data
SupabaseSSupabase / help-and-questions
4mo ago
Uploading files with Cyrilic names with Self-Hosted Supabase Studio
SupabaseSSupabase / help-and-questions
4mo ago
Uploading files locally on Supabase doesn't work
SupabaseSSupabase / help-and-questions
4mo ago