Somehow forgot UPLOAD_ERR_NO_FILE.

This commit is contained in:
flash 2018-03-25 23:40:01 +02:00
parent 103ce47ba8
commit 753fd8c17b

View file

@ -248,6 +248,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
case UPLOAD_ERR_OK: case UPLOAD_ERR_OK:
break; break;
case UPLOAD_ERR_NO_FILE:
$settings_errors[] = 'Select a file before hitting upload!';
break;
case UPLOAD_ERR_PARTIAL: case UPLOAD_ERR_PARTIAL:
$settings_errors[] = 'The upload was interrupted, please try again!'; $settings_errors[] = 'The upload was interrupted, please try again!';
break; break;