© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago
Ares

failing upload to storage ssr

Hi, I'm trying to upload images to storage through the backend, previously I was doing it from the frontend because I only had to upload one image (profile picture).

now I need to upload image(s) while submitting form data. something like an advert with a title, description and a couple of images (like ebay).

I'm using sveltekit and trying to submit through form actions as.

When console.log() I can see that the fileBody is being sent to the backend.

I'm getting this error while everything else is upserting correctly into the db. image paths getting saved into db, but no images in storage.
node:internal/deps/undici/undici:11576
    Error.captureStackTrace(err, this);
          ^

TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11576:11) {
  cause: Error: read ECONNRESET
      at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) {
    errno: -54,
    code: 'ECONNRESET',
    syscall: 'read'
  }
}
node:internal/deps/undici/undici:11576
    Error.captureStackTrace(err, this);
          ^

TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11576:11) {
  cause: Error: read ECONNRESET
      at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) {
    errno: -54,
    code: 'ECONNRESET',
    syscall: 'read'
  }
}


file body
file File {
  size: 255064,
  type: 'image/webp',
  name: 'buchhalter_profile.webp',
  lastModified: 1702116668728
}
file File {
  size: 255064,
  type: 'image/webp',
  name: 'buchhalter_profile.webp',
  lastModified: 1702116668728
}
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

Storage - dashboard upload
SupabaseSSupabase / help-and-questions
4mo ago
Storage upload issue
SupabaseSSupabase / help-and-questions
4y ago
Storage Upload Policies
SupabaseSSupabase / help-and-questions
4y ago
Can't upload to storage anymore
SupabaseSSupabase / help-and-questions
4y ago