note 31326 deleted from features.file-upload.common-pitfalls by aidan
| From: | aidan@php.net | Date: | Tue, 12 Oct 2004 07:48:00 +0000 |
| Subject: | note 31326 deleted from features.file-upload.common-pitfalls by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78381@lists.php.net to get a copy of this message | ||
Note Submitter: ed at example dot net
----
It appears that when uploading a file which exceeds your local upload_max_filesize and post_max_size
that the $_REQUEST array is entirely empty. So session handling (passing SID as a hidden in the
form) fails. Here's an illustration:
<html>
<body>
<form action="test.html" enctype="multipart/form-data"
method="post">
<input type="hidden" name="SID" value="XXX"
<input type="file" name="test">
<input type="submit">
</form>
</html>
<?php
print_r( $_REQUEST );
?>
--
Upload file that is lower than your limit and you'll see the posted variables. If it is greater
you'll see an empty array.