Image Upload Issue with Magento 1.9.2.3 or SUPEE-7405

Magento Community Edition 1.9.2.3 and the Security Patch SUPEE-7405 introduced a new bug with image uploading which resulted in incorrect file permissions for newly uploaded images. 

If you have uploaded any images which are not showing up, the first thing to do is to set the correct file permissions for your files and databases. 

To permanently resolve the problem, you will need to modify a file within Magento. 

Important Note: This is a manual hack which will be overwritten during a Magento upgrade. 


Open up the following file:-
lib/Varien/File/Uploader.php

Look for this line:-
chmod($destinationFile, 0640);

Replace it with this line:-
chmod($destinationFile, 0644);

Look for this line:-
chmod($destinationFile, 0750);

Replace it with this line:-
chmod($destinationFile, 0755);

Save the file and the next image uploaded should load properly.
  • 15 Users Found This Useful
Was this answer helpful?

Related Articles

503 Error (Service Temporarily Unavailable)

If you see a 503 Service Temporarily Unavailable error, go to the directory you install...

500 Error (Internal Server Error)

If you see a 500 Internal Server Error error, your Disk Space usage is most likely full. You...

Magento Built-In Backup System (Magento Backup)

We do not recommend clients to use the Magento Built-In Backup System (Magento Backup) as there...

403 Error (Forbidden)

If you see a 403 Forbidden error, there can be a few reasons that causes it:-1. Wrong File...

Magento Cron Job

With Magento version 1.8.x and 1.9.x, some users are facing issues where the Magento Cron Job is...