Open captain-Akshay opened 10 months ago
any luck on this ? even i am facing the same
Looks like the authentication you have set up in your middleware is not working correctly for some reason. Seems like a next-auth
configuration issue of some form perhaps?
How can I solve this I am getting the same error
Hello, has anyone solved this
i am trying to upload images/video through utapi.uploadFiles(files);
it need the type to be FileEsque
const files = formData.getAll('files') as FileEsque[];
though the file is getting uploaded in localhost the file is giving { data: null, error: { code: 'BAD_REQUEST', message: 'Failed to upload file.', data: undefined } } when trying to add media from hosted site in vercel
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
Routing (next/router, next/navigation, next/link)
Link to the code that reproduces this issue or a replay of the bug
https://github.com/captain-Akshay/nextNation
To Reproduce
next.config file
uploadthing core.ts
route.ts
on the localhost npm its running completely fine images are getting upload and shown properly but in production service. error
Describe the Bug
here the error is sometimes 404 or 400 presigned URL error. when i upload image in the production live site.
Expected Behavior
it was supposed to same in the local mode as in the production mode . uploading images should be upload the image.
Which browser are you using? (if relevant)
firefox
How are you deploying your application? (if relevant)
Vercel