# Image upload problem in template

**URL:** <https://forum.mautic.org/t/image-upload-problem-in-template/34606>\
**Category:** Product Support\
**Created:** [January 2, 2025, 7:40pm UTC](https://forum.mautic.org/t/image-upload-problem-in-template/34606 "2025-01-02T19:40:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxarch003](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/maxarch003/32/13457_2.png) [@maxarch003](https://forum.mautic.org/u/maxarch003)\
**Post date:** [January 2, 2025, 7:40pm UTC](https://forum.mautic.org/t/image-upload-problem-in-template/34606/1 "2025-01-02T19:40:41Z")

</div>

**Your software**  
My Mautic version is: 5.2.1  
PHP Version 8.2.26  
My Database type and version is: 10.6.19-MariaDB-cll-lve

It’s a new installation via one-click Softaculous, set up in a subdomain folder:  
`/main domain/subdomain/mautic`.  
I am new to Mautic and just getting started.

**Your problem**  
My problem is:  
Unable to add an image to our email template:

- Clicking “Add Image” does nothing.
- Dragging and dropping files into the designated area doesn’t work.
- Double-clicking the “Drop File” zone opens the file selection dialog, but after selecting an image and clicking “Open,” nothing happens.

These errors are showing in the log:  
nothing i have see, let me know the stp to find it

Steps I have tried to fix the problem:  
Installed and reinstalled multiple times.  
Contacted hosting support; they advised reinstalling, but the issue persists.  
Checked folder permissions: `/s/sysinfo#` folders show green on page.  
All permissions are set to `755`. Do they need to be `777` instead?

Any guidance with contexte would be appreciated!

---

<div class="post-metadata">

**Author:** ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)\
**Post date:** [January 3, 2025, 12:51pm UTC](https://forum.mautic.org/t/image-upload-problem-in-template/34606/2 "2025-01-03T12:51:41Z")

</div>

Your browser console will tell you what is the problem (F12 on Linux and Windows)

\*\*Make sure to disable any ad blockers when using Mautic

---

<div class="post-metadata">

**Author:** ![maxarch003](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/maxarch003/32/13457_2.png) [@maxarch003](https://forum.mautic.org/u/maxarch003)\
**Post date:** [January 3, 2025, 5:54pm UTC](https://forum.mautic.org/t/image-upload-problem-in-template/34606/3 "2025-01-03T17:54:21Z")

</div>

thankS @marcus42  
i am able to see the error in consol  
here is the log in screen shot

 ![error log](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5c9cb869110bbff99ff4b19b7596212a53c838ef.jpeg)

the last one  
is when i 2xclick on drop file zone / select image/ open  
the erroe log is long let me know if you need it  
in the log i also see some path related to my wp theme.

i also want to add that  
hosting support  
double-checked the permissions on the kinsu.ca folder, and everything seems correct  
double-checked the PHP memory limits and they are now set to 1024M, which should allow for image uploads without issues.

---

<div class="post-metadata">

**Author:** ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)\
**Post date:** [January 3, 2025, 6:11pm UTC](https://forum.mautic.org/t/image-upload-problem-in-template/34606/4 "2025-01-03T18:11:27Z")

</div>

Have you tried hitting the resource directly?

A 404 means that the resource ain’t reachable (file missing)

Make sure that the file is there and that you can hit it directly using cURL, WGET or any browser)

---

<div class="post-metadata">

**Author:** ![maxarch003](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/maxarch003/32/13457_2.png) [@maxarch003](https://forum.mautic.org/u/maxarch003)\
**Post date:** [January 3, 2025, 6:28pm UTC](https://forum.mautic.org/t/image-upload-problem-in-template/34606/5 "2025-01-03T18:28:26Z")

</div>

@marcus42  
Thanks for following up.

I’m not advanced in backend issues but will take a look at what you mentioned: hit it directly using cURL, WGET, or any browser?

I’ve done one-click installs with Softaculous multiple times. Could it mean it didn’t install all the files?

---

<div class="post-metadata">

**Author:** ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)\
**Post date:** [January 3, 2025, 7:11pm UTC](https://forum.mautic.org/t/image-upload-problem-in-template/34606/6 "2025-01-03T19:11:31Z")

</div>

To hit it directly using a headless browser such as cURL:  
`curl -Ik https://your-url/path/to/file`

I would suggest to download the source directly from github, expand it, make sure the perms are 0K. And then rsync it to the final folder.

This way you’ll sure have all the files.

---

<div class="post-metadata">

**Author:** ![maxarch003](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/maxarch003/32/13457_2.png) [@maxarch003](https://forum.mautic.org/u/maxarch003)\
**Post date:** [January 4, 2025, 4:05pm UTC](https://forum.mautic.org/t/image-upload-problem-in-template/34606/7 "2025-01-04T16:05:44Z")

</div>

@marcus42  
Thanks for your suggestion.  
I downloaded Google Canary and tried to find a way to call the file, but I feel my knowledge has reached its limit. I’ll keep looking into it.

I’ll focus on doing an install from GitHub and see if it works.

---

<div class="post-metadata">

**Author:** ![thijsv](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/thijsv/32/13387_2.png) [@thijsv](https://forum.mautic.org/u/thijsv)\
**Post date:** [January 15, 2025, 8:52am UTC](https://forum.mautic.org/t/image-upload-problem-in-template/34606/8 "2025-01-15T08:52:18Z")

</div>

We are having a similar problem with assets.  
When uploading an image while in the email template builder the POST request is downgraded to HTTP instead of HTTPS causing multiple errors.

The site URL is set to HTTPS and trusted proxies to 0.0.0.0/0.

I am not seeing this issue in Mautic 5.0.4. Looks like it started in 5.1.0.

---

<div class="post-metadata">

**Author:** ![prabhuvajjiram](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/prabhuvajjiram/32/13844_2.png) [@prabhuvajjiram](https://forum.mautic.org/u/prabhuvajjiram)\
**Post date:** [August 1, 2025, 6:19pm UTC](https://forum.mautic.org/t/image-upload-problem-in-template/34606/9 "2025-08-01T18:19:19Z")

</div>

I have exact same issue, how can I solve it ? in the var/cache/prod clearly urls start with /s/grapesjsbuilder/upload rather mautic/s/grapesjsbuilder/upload so getting 404 where exactly baseurl is getting generated to update this ? Im in 6.0.3

---

<div class="post-metadata">

**Author:** ![lwdeddie](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lwdeddie/32/755_2.png) [@lwdeddie](https://forum.mautic.org/u/lwdeddie)\
**Post date:** [February 4, 2026, 10:24am UTC](https://forum.mautic.org/t/image-upload-problem-in-template/34606/10 "2026-02-04T10:24:27Z")

</div>

I am also having a similar grapesjs 404 problem. I have mautic 6.0.7 in a subfolder and a couple of the file reference URLS in my inspect panel are displaying without the subfolder in the path. Particularly these two:

• media?page=1:1  
• /s/grapesjsbuilder/upload:1
