cancel
Showing results for 
Search instead for 
Did you mean: 

Image Uploader not upload images in Magento 1.9.2.3

Image Uploader not upload images in Magento 1.9.2.3

The Image Uploader is not working properly in Magento 1.9.2.3, seems to upload images with chmod 640 permissions.

 

Any ideas anyone? I dont really want to change the uploader.php file.

 

Thanks

Darren

5 REPLIES

Re: Image Uploader not upload images in Magento 1.9.2.3

This is my first reply here so excuse for any mistake.

Well that's true and i had the same problem but if you check the last changelog you ll see that is not a bug... 
Check here: http://devdocs.magento.com/guides/m1x/install/installer-privileges_after.html#privs-after

Well you have to ways to fix that issue:

 

WAY 1: Edit the file Uploader.php (NOT SAFE)

Location: magento dir --> lib/Varien/File/Uploader.php

 

Change line 219:

chmod($destinationFile, 0640);

 

Change it to:

chmod($destinationFile, 0644);

 

 

WAY 2: FOR PLESK - CENTOS USERS
At Plesk the Apache is member of psaserv group.
The new files that magento creates are in group psacln and the owner is your FTP user. No access for Apache there.

First via SSH check your groups:

 

# grep ''  /etc/group

Add Apache to the psacln

# usermod -a -G psacln apache

 

 

Restart Apache Service and voilà!!!

Re: Image Uploader not upload images in Magento 1.9.2.3

Hi

 

Im on a CentOS 6 VPS, are these SSH commands ok for CentOS.

 

cheers

Re: Image Uploader not upload images in Magento 1.9.2.3

Yes, are safe and you can google about those commands.


You can remove the Apache user from the second group (as it was before).

The command is:

gpasswd -d username group

Btw imo first try the WAY1 by editing the uploader.php and test it. If it works change again the uploader.php to 0640 and add the Apache User to the Group.

Re: Image Uploader not upload images in Magento 1.9.2.3

Hello, I tried WAY I on 1.9.2.2 after SUPEE 8788 and 7405 update but the images still aren't uploading. I also tried 0777 permission code. No luck. Any help?

Re: Image Uploader not upload images in Magento 1.9.2.3

You can do it by CSV import