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

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 its a live site I would make sure to back it up and put into maintenance mode. If your 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 incase its not a file permission error.

  • ok i will try with given details – Brijesh Patel Feb 13 '16 at 11:47
  • Did you manage to fix the issue? – Colin Murphy Feb 14 '16 at 18:42
  • No it's not solved yet – Brijesh Patel Feb 14 '16 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. – Colin Murphy Mar 17 '16 at 20:42

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.