Hi,
Here is the code of the CUploadedFile::saveAs() function :
public function saveAs($file,$deleteTempFile=true)
{
if($this->_error==UPLOAD_ERR_OK)
{
if($deleteTempFile)
return move_uploaded_file($this->_tempName,$file);
else if(is_uploaded_file($this->_tempName))
return copy($this->_tempName, $file);
else
return false;
}
else
return false;
}
When i try to save my file, i’m in :
return move_uploaded_file($this->_tempName,$file);
But PHP says :
move_uploaded_file(): The second argument to copy() function cannot be a directory
As i see in the class reference :
$file ..... string ..... the file PATH used to save the uploaded file
The file PATH i should give isn’t a directory ??