Storage v3 resumable uploads on localhost?
# help-and-questions
s
Hello! Recently I reached out to support and got our project enabled for early access to storage v3 resumable uploads. I tested out the simple Uppy example from the blog post (https://supabase.com/blog/storage-v3-resumable-uploads) in our app. On the staging environment, which is the project that was enabled by support, it's been working great! However, the same code is not working on local. Here's the relevant snippet:
Copy code
const uppy = new Uppy()
  .use(Webcam, {
    modes: ['video-audio', 'audio-only']
  })
  .use(Audio, {
    showAudioSourceDropdown: true
  })
  .use(Tus, {
    endpoint: `${process.env.NEXT_PUBLIC_SUPABASE_URL}/storage/v1/upload/resumable`,
    headers: {
      authorization: `Bearer ${process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY}`
    },
    chunkSize: 6 * 1024 * 1024,
    allowedMetaFields: [
      'bucketName',
      'objectName',
      'contentType',
      'cacheControl'
    ]
  });
On staging,
NEXT_PUBLIC_SUPABASE_URL
is
https://<my-project-id>.supabase.co
, whereas on local it is
http://localhost:54321
. Locally, the upload results in
net::ERR_CONNECTION_REFUSED
. Is it possible to get the local instance to support the same? Am I able to do whatever it is support did for the staging instance but for my local? Thanks.

https://cdn.discordapp.com/attachments/1111460646131875892/1111460646744240228/Screenshot_2023-05-25_at_5.56.21_PM.png

s
Yeah me too.
17 Views