0

i am uploading product images through admin panel but when i upload image then error and not showing any error

i am use code for showing error

public function save($destinationFolder, $newFileName = null){
$this->_validateFile();

if ($this->_allowCreateFolders) {
    $this->_createDestinationFolder($destinationFolder);
}

if (!is_writable($destinationFolder)) {
    // Put a mage::log() and check what is the folder magento is looking for.
    Mage::log($destinationFolder);
    throw new Exception('Destination folder is not writable or does not exists.');
}

. . . . .

}

please help me

image is not upload

1 Answer 1

0

This sounds like a permission issue with your media directory.

If you have just upgraded to 1.9.2.3. Magento changed the file permission in the Varien_File_Uploader class.

You can set the correct file permissions using the documentation on the Magento site However if it's a live site I would make sure to back it up and put it into maintenance mode. If you are not comfortable with changing file permissions I would contact your hosting company.

I would also enable logging and check the logs to see what the exact error is in case it's not a file permission error.

4
  • ok i will try with given details Feb 13, 2016 at 11:47
  • Did you manage to fix the issue? Feb 14, 2016 at 18:42
  • No it's not solved yet Feb 14, 2016 at 18:50
  • Sorry. I missed your message. Did you apply the latest patch 1.9.2.4. This makes changes to Varien_File_Uploader class. Mar 17, 2016 at 20:42

Your Answer

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

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