Solution for Upload HTTP Error in Magento

Posted on 2 February, 2017

We have written this short technical note for those who are using PHP 7 Version and having an issues while uploading product images and getting an error like “Upload HTTP Error”.

So. Don't worry about “Upload HTTP Error” in Magento 1.X version. We have a solution for that kind of error.

To solve this error you just need to follow some simple step which are listed below.

You just need to make changes in Uploader.php file which is located in /lib/Varien/File/Uploader.php. So, for that go to the magento root directory and open Uploader.php file from /lib/Varien/File/Uploader.php. and find the following code.

$params['object']->$params['method']($this->_file['tmp_name']);

And replace with

$params['object']->{$params['method']}($this->_file['tmp_name']);

BINGO!

I hope this short Magento technical note helped you to solve "Upload HTTP Error" error on Magento 1.X Version, And don't forget to bookmark it for your future reference. If you have any problem or ideas don’t hesitate to leave comment below.

P.S. Do share this note with your team.


Mayank Zalavadia , eCommerce Project Manager
Magento Technical Notes

Post Your Review

X

Your Review has been posted

0 Comment(s)