Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The exact exception/error-message your'e reporting doesn't show up in Magento's source code as a string, so I'm not 100% sure I'm pointing you in the right direction here. </p> <p>That said, most uploads in magento are handled by the <code>save</code> method on an instantiated object of the <code>Varien_File_Uploader</code> class. </p> <pre><code>File: lib/Varien/File/Uploader.php public function save($destinationFolder, $newFileName=null) { $this-&gt;_validateFile(); if( $this-&gt;_allowCreateFolders ) { $this-&gt;_createDestinationFolder($destinationFolder); } if( !is_writable($destinationFolder) ) { throw new Exception('Destination folder is not writable or does not exists.'); } $result = false; $destFile = $destinationFolder; $fileName = ( isset($newFileName) ) ? $newFileName : self::getCorrectFileName($this-&gt;_file['name']); if( $this-&gt;_enableFilesDispersion ) { $fileName = $this-&gt;correctFileNameCase($fileName); $this-&gt;setAllowCreateFolders(true); $this-&gt;_dispretionPath = self::getDispretionPath($fileName); $destFile.= $this-&gt;_dispretionPath; $this-&gt;_createDestinationFolder($destFile); } if( $this-&gt;_allowRenameFiles ) { $fileName = self::getNewFileName(self::_addDirSeparator($destFile).$fileName); } $destFile = self::_addDirSeparator($destFile) . $fileName; $result = move_uploaded_file($this-&gt;_file['tmp_name'], $destFile); if( $result ) { chmod($destFile, 0777); if ( $this-&gt;_enableFilesDispersion ) { $fileName = str_replace(DIRECTORY_SEPARATOR, '/', self::_addDirSeparator($this-&gt;_dispretionPath)) . $fileName; } $this-&gt;_uploadedFileName = $fileName; $this-&gt;_uploadedFileDir = $destinationFolder; $result = $this-&gt;_file; $result['path'] = $destinationFolder; $result['file'] = $fileName; return $result; } else { return $result; } } </code></pre> <p>Throw some debugging statements into this function to see if </p> <ol> <li><p>It's the one being called and is failing</p></li> <li><p>To figure out why it might be returning false (i.e., not uploading the file)</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload