ID:               49570
 Updated by:       j...@php.net
 Reported By:      erikvernsmith at yahoo dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Filesystem function related
 Operating System: Mac OS 10.6.1
 PHP Version:      5.3.0


Previous Comments:
------------------------------------------------------------------------

[2009-09-16 13:48:18] erikvernsmith at yahoo dot com

Description:
------------
I set upload_max_filesize in php.ini to 64M

I'm using a simple html form to post/upload a file to a simple php
script. If I upload files smaller than 8MB everything works fine. If I
upload a file larger than 8MB, print_r( $_POST ) and print_r( $_FILES )
are empty.

Important note: 8MB is not a magic number. On my localhost 10MB files
do upload, but 50MB files do not. 8MB files will not work on my remote
website, but 7MB files will work.



Reproduce code:
---------------
complete HTML file:

<form enctype="multipart/form-data" action="simpleuploadtest.php"
method="POST">
<input type="text" name="mytitle" value="junkjunk and more junk" />
Choose a file to upload: <input name="uploadedfile" value=""
type="file" /><br />
<input type="submit" value="Upload File" />
</form>


complete PHP file:

<?php
echo 'testing123<BR><BR>';
echo $_POST['mytitle'];
echo '<BR><BR>';
print_r( $_POST );
echo '<BR><BR>';
print_r( $_FILES );
?>


Expected result:
----------------
I expect the $_POST and $_FILES arrays to have contents, like this:

testing123

junkjunk and more junk

Array ( [mytitle] => junkjunk and more junk )

Array ( [uploadedfile] => Array ( [name] => junk.bin [type] =>
application/macbinary [tmp_name] => /private/var/tmp/php0tupN2 [error]
=> 0 [size] => 10485760 ) ) 

Actual result:
--------------
The $_POST and $_FILES arrays are empty, like this:

testing123



Array ( )

Array ( ) 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49570&edit=1

Reply via email to