react-email-editor icon indicating copy to clipboard operation
react-email-editor copied to clipboard

ImageMaxSizeExceededError when uploading an image

Open arndvs opened this issue 9 months ago • 2 comments

I am currently using the react-email-editor 1.7.10 component in my React Next.JS application, and I have encountered an issue when trying to upload an image.

When attempting to insert an image, I receive an error at the "Almost there - Uploading your image..." stage. The error message is as follows:

at https://editor.unlayer.com/1.9.2/editor.js:2:901383
at p (https://editor.unlayer.com/1.9.2/editor.js:2:887565)
at Generator.<anonymous> (https://editor.unlayer.com/1.9.2/editor.js:2:888892)
at Generator.next (https://editor.unlayer.com/1.9.2/editor.js:2:887975)
at w (https://editor.unlayer.com/1.9.2/editor.js:2:893476)
at a (https://editor.unlayer.com/1.9.2/editor.js:2:893679)

I noticed that there was a recent update to the Unlayer editor, version 1.9.1, released 7 days ago by John Edward.

The release notes mention that this update includes a fix for the use of the image editor. I am wondering if this update might be related to the issue I am facing and if it could potentially address the ImageMaxSizeExceededError.

Could you please provide guidance on how to resolve this error and successfully upload images within the react-email-editor component? Are there any specific configuration options or properties I should be aware of to handle image size limits correctly?

Any assistance or insights you can provide would be greatly appreciated. If you need any further information or clarification, please let me know.

Thank you,

Aaron

arndvs avatar May 16 '24 12:05 arndvs