1

I am using Magento Version 1.9.0.1. When I tried to upload an image for a product I get below error.

I tried reinstalling Magento, but that didn't work.

Please help me to identify the problem and fix it.

enter image description here

  • Is the image larger than max allowed upload? – Marius Jun 30 '14 at 11:34
  • @Marius no just 110.45 kb – brainless Jun 30 '14 at 11:36
  • upload_max_filesize 2M 2M upload_tmp_dir /tmp /tmp – brainless Jun 30 '14 at 11:38
  • Check file permissions – Charlie Jun 30 '14 at 12:46
4

There's a number of things to consider before checking logs (which you should do anyway):

  1. Is your upload_max_filesize big enough?
  2. What are the privileges of your media folder (your server must be able to write there, otherwise no uploads)?
  3. Do you have enough space either in PHP tmp catalog or media catalog?
  4. Do you have enough inodes?
  5. Do you have file upload enabled at all (perhaps you have file_uploads=Off)?
  • Max upload size is 2M. Media folder privileges are 770. There is free space in tmp folder. I am not sure about inodes. file_uploads=ON. – brainless Jun 30 '14 at 11:44
  • I have unlimited disk space on an VPS. – brainless Jun 30 '14 at 11:46
  • our server php info can be found here. stellarthoughts.in/info.php – brainless Jun 30 '14 at 11:47
  • There's VERY good chance that either your web server is not the owner of this folder, or it doesn't belong to the group which has rights for this folder. 770 means that owner and group has all privileges and everyone else has none. – Pronto Jun 30 '14 at 11:51
  • @brainless How u solved your file upload issue , as same i am facing , i checked as suggested by Pronto – inrsaurabh Jul 11 '17 at 11:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.