cancel
Showing results for 
Search instead for 
Did you mean: 

Product Gallery Image cannot upload; Error : Something went wrong while saving the file(s).

Product Gallery Image cannot upload; Error : Something went wrong while saving the file(s).

Hi,

 

I cannot upload images for new products or existing ones. All will show the error screenshot below.

magento error.png

Also, when I check on DevTools the data-url showing as below.

Image URL.png

 

This problem only happens when I upload images on a new product or edit an existing product. 

 

I have tried the methods below:

1. Change the pub/media folder permission.

2. https://community.magento.com/t5/Magento-2-x-Technical-Issues/Error-Something-went-wrong-while-savin...

 

Thanks in advance!

2 REPLIES 2

Re: Product Gallery Image cannot upload; Error : Something went wrong while saving the file(s).

Hi,

 

same issue i am facing did you got any solution please share

Re: Product Gallery Image cannot upload; Error : Something went wrong while saving the file(s).

Hello @tbnplitgma3e64 

 

Check File and Folder Permissions: Make sure the pub/media and var directories are writable.

find var pub/static pub/media app/etc -type f -exec chmod 644 {} \; 

find var pub/static pub/media app/etc -type d -exec chmod 755 {} \; 

chmod -R 777 var pub/static pub/media

 

Check PHP Settings: 

upload_max_filesize = 10M 

post_max_size = 20M 

max_execution_time = 180

Increase the values if necessary.

Restart your web server after making changes to php.ini.

 

Hope it helps !

If you find our reply helpful, please give us kudos.

 

A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.

 

WebDesk Solution Support Team

Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789

 

 

Thank You,


WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789


Location: 150 King St. W. Toronto, ON M5H 1J9