Error Uploading file Email Templates

Hi everybody,
I’m using suitecrm 7.10.31 lts version.

I have a problem in the Email Templates modules. I’m not able to upload local images via mozaik or tinymce.
I’ve checked in the config.php the params site_url and host_name and they are right.
I see that the images are in the directory cache/images and not in the upload directory.
And when I upload the image, if I see the source code of the file there isn’t the attribute src populated in the tag img.

I was thinking that maybe some custom of mine could have created the problem, but I’ve tried in a new installation without custom code and the problem is still there.

Do you have any ideas how to resolve it ?
Thanks
Marco

2 Likes

Hey there @marcozara93

This should have been resolved in later SuiteCRM versions from 7.10.13+

Hope that helps.

Hi @marcozara93,

In Mozaik --Email Template uploaded at local image process

  • Use mozaik
  • Insert > Insert/edit image
  • Select a file and upload
  • The “Source” field should contain a path to the added image file

For Tinymce-

Conclusion- In the Email Template only support the Source URL.

1 Like

Hi, thank you for your reply.
But this fix is already present.

1 Like

Hi thank you for your reply.
In this case I’m using Mozaik to upload the images.
As you can see in the screenshot, the image is uploaded correctly

And the source I think is ok

<h1 style="font-family: Arial, Helvetica, sans-serif; font-size: 24px; line-height: 38.4px; color: #444444; padding: 0px; margin: 0px;"><img style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;" src="cache/images/B.png" alt="" /><img style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;" alt="" /><img style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;" alt="" /></h1>
 
 
 
 
 
But when I save the record the image is not saved and if i look the source form is empty. So the value is not saved.

Hi @marcozara93

I also checked and it is not uploading from the desktop.
It is only supporting the Online URL Image.


And I have found one bug in SuiteCRM: If you upload an image of any format, Suitecrm convert it on .jpg