Home    Articles

 

Magento image upload error "destination folder is not writable or does not exists"

 

Magento image upload error occurs in most of times after moving the files from one hosting to another.
In this case the folder permmisions were changed and the magento code is unable to upload the image or to create a new folder in his destination folder.

Destination folder is this one: media/tmp/catalog/product .

The solution for this is to use winscp or something else that allows you to change file permission to 777 recursively.

If you want to find yourself, find the file: lib/Varien/File/Uploader.php and search for this:

...
if( !is_writable($destinationFolder) ) {
    throw new Exception('Destination folder is not writable or does not exists.');
}   
...

Now add some debugging code:

//debugging code
echo destinationFolder;exit;
if( !is_writable($destinationFolder) ) {
    throw new Exception('Destination folder is not writable or does not exists.');
}

Now you are able to debug your code.

Let us know if this helped you.
Enjoy.

…first time posted on w3bdeveloper.com

by