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

Image upload Error

Open jayanthbondi opened this issue 3 years ago • 8 comments

I'm getting this error when I try to upload a 1.5 MB image. 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.

jayanthbondi avatar Apr 21 '21 08:04 jayanthbondi

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.

alina-unlayer avatar Apr 22 '21 08:04 alina-unlayer

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.

jayanthbondi avatar Apr 23 '21 07:04 jayanthbondi

@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.

jayanthbondi avatar Apr 23 '21 08:04 jayanthbondi

Hey is there a way to edit the bucket link ; I want to send uploaded images to my AWS s3 Bucket

sanket9006 avatar May 22 '21 02:05 sanket9006

Hi @sanket9006 , yes you can. There are 2 approaches

  1. https://docs.unlayer.com/docs/amazon-s3 (setup your s3 in unlayer account)
  2. 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

jayanthbondi avatar May 22 '21 12:05 jayanthbondi

https://docs.unlayer.com/docs/merge-tags Option is not visible ---> Dynamic Content ---> Merge Tags

https://docs.unlayer.com/docs/merge-tags Capture

sanket9006 avatar May 23 '21 04:05 sanket9006

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

image

jayanthbondi avatar May 23 '21 06:05 jayanthbondi

That was very helpful

Also, I need another help when I sent mail to the email ID it shows up like this Capture

can u help me with this please

sanket9006 avatar May 24 '21 10:05 sanket9006