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

Might be error from UploadThing or Editorjs #15

Open
Nith567 opened this issue Jun 28, 2023 · 6 comments
Open

Might be error from UploadThing or Editorjs #15

Nith567 opened this issue Jun 28, 2023 · 6 comments

Comments

@Nith567
Copy link

Nith567 commented Jun 28, 2023

When i am trying to upload an image or post a link, its comes up and says :"Couldn’t upload image. Please try another."(for an image)

@Avijit-Sarkar
Copy link

same problem started to happen

@joschan21
Copy link
Owner

That's not good, might be something UploadThing or EditorJS have changed under the hood

@SaiSawant1
Copy link

I have just finished the whole video and not getting the error you should reevaluate your code.

@ryanyogan
Copy link

Either downgrade upload-thing to version 4.x
npm install uploadthing@4.x

Or use the latest documentation as things changed in version 5.0.0

@krsnamara
Copy link

Yes I am getting this same issue. Will look into the documentation or downgrade as you have suggested

@krsnamara
Copy link

krsnamara commented Apr 12, 2024

Looking at the error message I opened up an internal file and found that uploadthing is just S3 under the hood. Going to get back to it tomorrow and add either S3 or supabase as the image storage function and toss uploadthing.

Image Tool: uploading failed because of TypeError: Cannot read properties of undefined (reading 'map')
    at uploadFilesInternal (index.js:168:27)
    at eval (index.js:234:9)
    at Object.uploadByFile (Editor.tsx:72:50)
    at eval `(bundle.js:10:35524)
// Get presigned URL for S3 upload
    const s3ConnectionRes = await reportEventToUT("upload", {
        input: "input"in opts ? opts.input : null,
        files: opts.files.map((f)=>({
            name: f.name,
            size: f.size,
            type: f.type
        }))
    });    

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

Successfully merging a pull request may close this issue.

6 participants