UPLOAD_ERR_INI_SIZE Value: 1; The uploaded file exceeds the upload_max_filesize directive in php.ini.
This make sense when your POST_MAX_SIZE
is bigger than UPLOAD_MAX_FILESIZE
.
I tried in an environment where POST_MAX_SIZE
is 128MB
, then i set UPLOAD_MAX_FILESIZE
to 1MB
Here's what i got (as expected):
Contents of $_POST:
Array
(
[random_field] => You should see this field in the $_POST superglobal.
)
Contents of $_FILES:
Array
(
[upload_test] => Array
(
[name] => Scan.tiff
[type] =>
[tmp_name] =>
[error] => 1
[size] => 0
)
)
Although we don't get the size of the file, we do know that it's exceeding the upload_max_filesize
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…