1

whenever i try to upload an image on product page it gives this error:

Upload HTTP Error

Given all permissions to all the required folders and cleared cache.

Any solution?

Bishal Neupane
1631 gold badge3 silver badges15 bronze badges
asked Oct 12, 2015 at 10:28

5 Answers 5

7

If you are using PHP 7 then go to

lib/Varien/File/Uploader.php

Find the following code

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

And replace it with

$params['object']->{$params['method']}($this->_file['tmp_name']);
answered Nov 17, 2016 at 9:43
0
0

You can check apache error log.as well as ask your hosting provider if PHP is running in FastCGI mode and if there is MaxRequestLen limitation.

answered Oct 12, 2015 at 10:40
9
  • already checked this isn't working for me Commented Oct 12, 2015 at 10:41
  • .htaccess and .htpasswd issue i think Commented Oct 12, 2015 at 10:45
  • means what kind of issue? Commented Oct 12, 2015 at 10:46
  • have you protected directory with password Commented Oct 12, 2015 at 10:48
  • which directory? Commented Oct 12, 2015 at 10:50
0

You can refer the below link in which given the steps to follow to solve this error:- https://stackoverflow.com/questions/18994648/magento-upload-http-error Possible to try all this steps.

answered Oct 12, 2015 at 10:47
0

You may have exceeded the file size or dimensions that are set. I've had this error before when trying to upload an image that's several MB. Try a test image less than 500k. If it works, then try adjusting your PHP settings to something like the below:

; Maximum allowed size for uploaded files.
upload_max_filesize = 10M
; Must be greater than or equal to upload_max_filesize
post_max_size = 10M
answered Aug 11, 2016 at 18:48
-1

I think it's a permission problem or you have to increase

upload_max_filesize 
post_max_filesize

in the php.ini file.

answered Sep 11, 2016 at 17:23

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.