react-email-editor
react-email-editor copied to clipboard
Image upload Error
I'm getting this error when I try to upload a 1.5 MB image.
Earlier, I was not facing this issue and also I have setup a custom s3 bucket to store the images. Please help.
Thanks in advance.
Hey, The image upload limit is 2MB on a free plan. We are not able to reproduce this issue. Can you send a video or more information to reproduce this issue? Thank you.
Hi @alina-unlayer earlier there was no such limit as I was able to upload even 6MB images. When was the size limit introduced?
Even in the demo app, it's showing the size limit is 1MB.
@alina-unlayer I was trying to upload 4MB image and I faced this issue, But earlier 4-5 months back I was able to upload even 10MB image. Could you please help me. Thanks in advance.
Hey is there a way to edit the bucket link ; I want to send uploaded images to my AWS s3 Bucket
Hi @sanket9006 , yes you can. There are 2 approaches
- https://docs.unlayer.com/docs/amazon-s3 (setup your s3 in unlayer account)
- https://docs.unlayer.com/docs/custom-file-storage (it provides a callback which executes when an image is being uploaded, here you can upload to your s3 bucket and give the link)
I chose the second approach
https://docs.unlayer.com/docs/merge-tags Option is not visible ---> Dynamic Content ---> Merge Tags
https://docs.unlayer.com/docs/merge-tags
You can set the initial merge tags with setMergeTags. MergeTags array should be like this const mergeTags = [{name:'Candidate Name',value:'{{Candidate.Name}}'}].
use setMergeTags inside onLoad method.
https://codesandbox.io/s/react-email-editor-demo-forked-vsyqb?file=/src/index.js
That was very helpful
Also, I need another help when I sent mail to the email ID it shows up like this
can u help me with this please