check for UPLOAD_ERR_NO_FILE on FileField::saveinto

This commit is contained in:
Andrew Aitken-Fincham 2018-01-03 12:01:18 +00:00
parent 02761d6ca8
commit fb5476cb70
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}