note 119869 added to features.file-upload.common-pitfalls
| From: | adrien.nizon+phpnetatgmaildotcom | Date: | Fri, 09 Sep 2016 07:48:28 +0000 |
| Subject: | note 119869 added to features.file-upload.common-pitfalls | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206535@lists.php.net to get a copy of this message | ||
Please note that the field MAX_FILE_SIZE cannot exceed 2147483647. Any greater value will lead to an
upload error that will be displayed at the end of the upload
This is explained by the related C code :
if (!strcasecmp(param, "MAX_FILE_SIZE")) {
max_file_size = atol(value);
}
The string is converted into a long int, which max value is... 2147483647
Seems to be corrected since php-7.1.0beta3
(https://github.com/php/php-src/commit/cb4c195f0b85ca5d91fee1ebe90105b8bb68356c)
----
Server IP: 72.52.91.14
Probable Submitter: 5.51.24.125
----
Manual Page -- http://php.net/manual/en/features.file-upload.common-pitfalls.php
Edit -- https://master.php.net/note/edit/119869
Del: integrated -- https://master.php.net/note/delete/119869/integrated
Del: useless -- https://master.php.net/note/delete/119869/useless
Del: bad code -- https://master.php.net/note/delete/119869/bad+code
Del: spam -- https://master.php.net/note/delete/119869/spam
Del: non-english -- https://master.php.net/note/delete/119869/non-english
Del: in docs -- https://master.php.net/note/delete/119869/in+docs
Del: other reasons-- https://master.php.net/note/delete/119869
Reject -- https://master.php.net/note/reject/119869
Search -- https://master.php.net/manage/user-notes.php