public setUploadedFile ( string $name ) : boolean | ||
$name | string | name of file uploaded |
return | boolean | success |
public function setUploadedFile($name)
{
$this->setName($name);
if (!$this->isUploaded()) {
$this->setName(null);
$this->_error_message = Message::error(__('File was not an uploaded file.'));
return false;
}
return true;
}