uploadthing icon indicating copy to clipboard operation
uploadthing copied to clipboard

ERROR! Failed to get presigned URLs

Open regardt-nel opened this issue 2 years ago • 2 comments

Filetype is set to blob and I tried uploading a PNG image. Not sure if this is a bug, or just wrong config on my end for localhost.

image

regardt-nel avatar May 15 '23 14:05 regardt-nel

This error disappears when I set the file permission to allow only images, and subsequently upload a PNG image file on localhost.

The moment I deployed to https://uploadtest-theta.vercel.app/ I got the same error.

regardt-nel avatar May 15 '23 14:05 regardt-nel

blob requires content-type to be application/octet-stream -- this may be a bug, as the field should probably coerce all content-types to application/octet-stream

markflorkowski avatar May 15 '23 19:05 markflorkowski

I'm getting a similar issue, I have a pretty basic setup and no file type limitations or size limitations. Not sure what this is about.

quinm0 avatar May 23 '23 16:05 quinm0

Here's my backend error

- error Error [TypeError]: resolver is not a function
    at /homedir/upload-thing/node_modules/next/dist/server/api-utils/node.js:463:16

quinm0 avatar May 23 '23 16:05 quinm0

@KyleMoran138 Can you share what your router definition looks like?

markflorkowski avatar May 23 '23 21:05 markflorkowski

I had the same error make sure you have your api exposed. And I was missing the environment variables: UPLOADTHING_SECRET and UPLOADTHING_APP_ID

VincentAudette avatar May 25 '23 22:05 VincentAudette

Assuming this was missing env variables. Next release will have better errors for that. Re-open if you are able to provide a public repro

t3dotgg avatar May 27 '23 01:05 t3dotgg

Filetype is set to blob and I tried uploading a PNG image. Not sure if this is a bug, or just wrong config on my end for localhost.

image

I get the same error when I want to upload a pdf, did you solve it?

JuanDa14 avatar Oct 23 '23 02:10 JuanDa14

I get the same error when I want to upload a pdf, did you solve it?

Can you confirm which version of Uploadthing you are using, and share what your router config looks like?

markflorkowski avatar Oct 24 '23 00:10 markflorkowski

Filetype is set to blob and I tried uploading a PNG image. Not sure if this is a bug, or just wrong config on my end for localhost.

image

I actually had the exact same issue. If it occurs to you it's most probably due to a typo in your core.ts file. Mine was quite simple the maxFileCount object was set to a String instead of a Number. This is what I mean: ImageUploader: f({image: {maxFileCount: "1"}}) Instead of ImageUploader: f({image: { maxFileCount: 1}})

Ngash01 avatar Dec 04 '23 18:12 Ngash01

Im facing the same issue. When I upload files that are present on the server everything works fine but when I try to upload files that are not on the server I get that nasty error and I dont know how to solve it.

astro-jets avatar Dec 19 '23 21:12 astro-jets