check for UPLOAD_ERR_NO_FILE on FileField::saveinto
This commit is contained in:
parent
02761d6ca8
commit
fb5476cb70
|
@ -128,7 +128,7 @@ class FileField extends FormField implements FileHandleField
|
|||
*/
|
||||
public function saveInto(DataObjectInterface $record)
|
||||
{
|
||||
if (!isset($_FILES[$this->name])) {
|
||||
if (!isset($_FILES[$this->name]['error']) || $_FILES[$this->name]['error'] == UPLOAD_ERR_NO_FILE) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue