#20696 [NEW]: Large File Upload problem $HTTP_POST_FILES["file_attachment"]["size"]
| From: | jason at hodfords dot com | Date: | Thu, 28 Nov 2002 11:15:49 +0000 |
| Subject: | #20696 [NEW]: Large File Upload problem $HTTP_POST_FILES["file_attachment"]["size"] | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-26057@lists.php.net to get a copy of this message | ||
From: jason@hodfords.com
Operating system: Linux Red Hat 7.3
PHP version: 4.2.3
PHP Bug Type: Filesystem function related
Bug description: Large File Upload problem
$HTTP_POST_FILES["file_attachment"]["size"]
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 bug report at http://bugs.php.net/?id=20696&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20696&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20696&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20696&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20696&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20696&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20696&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20696&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20696&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20696&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20696&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20696&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20696&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20696&r=isapi