The component is calling JFile::upload() which is located in /libraries/joomla/filesystem/file.php (line 311).
The change made to this function was due to this bug report: http://joomlacode.org/gf/project/joomla ... m_id=16593
The code change was here:
1.5.11 ->
Code: Select all
// Copy the file to the destination directory
if ($ftp->store($src, $dest)) {
$ftp->chmod($dest, 0777);
$ret = true;
} else {
JError::raiseWarning(21, JText::_('WARNFS_ERR02'));
}
Code: Select all
// Copy the file to the destination directory
if (is_uploaded_file($src) && $ftp->store($src, $dest))
{
unlink($src);
} else {
JError::raiseWarning(21, JText::_('WARNFS_ERR02'));
}
Adding the $ret = true; back in solved the issue.
Code: Select all
// Copy the file to the destination directory
if (is_uploaded_file($src) && $ftp->store($src, $dest))
{
$ret = true;
unlink($src);
} else {
JError::raiseWarning(21, JText::_('WARNFS_ERR02'));
}