#20696 [Opn->Fbk]: Large File Upload problem $HTTP_POST_FILES["file_attachment"]["size"]
| From: | sniper@php.net | Date: | Thu, 28 Nov 2002 11:27:35 +0000 |
| Subject: | #20696 [Opn->Fbk]: Large File Upload problem $HTTP_POST_FILES["file_attachment"]["size"] | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26061@lists.php.net to get a copy of this message | ||
ID: 20696
Updated by: sniper@php.net
Reported By: jason@hodfords.com
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: Linux Red Hat 7.3
PHP Version: 4.2.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-11-28 05:15:49] jason@hodfords.com
When uploading a large file > 8192K, this problem comes up.
HTML Page
<form action="testing.php" method="post"
enctype="multipart/form-data">
<input type=File name="file_attachment" size=20 value="">
</form>
Testing.php
The variable of $HTTP_POST_FILES["file_attachment"]["size"] will equal
8192K if the uploaded file is greater than 8192K, however the file is
say 4000K, then the variable
$HTTP_POST_FILES["file_attachment"]["size"] will be equal to 4000K.
We have made the necessary adjustments to php.ini.
post_max_size = "14M"
upload_max_filesize = "12M"
We have increased the memory limit to "16M".
Everything is working fine, except when the file size is greater than
8192K
Thanks,
Jason.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20696&edit=1