Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve Image Uploade Error #23

Open
0xsonu opened this issue Aug 6, 2023 · 2 comments
Open

Solve Image Uploade Error #23

0xsonu opened this issue Aug 6, 2023 · 2 comments

Comments

@0xsonu
Copy link

0xsonu commented Aug 6, 2023

const [res] = await uploadFiles([file], 'imageUploader')

instead of this we can use below code to solve image uplaoding problems.

const [res] = await uploadFiles({
  endpoint: 'imageUploader',
  files: [file],
})
@fabianelias
Copy link

I tried you solution but, i founded with the same problem, so i looking within the documentation of uploadthing and this worked for me.

const res = await uploadFiles('imageUploader',{files: [file]})

@Temuujin94
Copy link

I tried you solution but, i founded with the same problem, so i looking within the documentation of uploadthing and this worked for me.

const res = await uploadFiles('imageUploader',{files: [file]})

hi my friend which uploadthing version did you use in your breadit project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants