php upload does not work proper, ["tmp_name"] and other are missing in $_FILES

From: Date: Tue, 20 Mar 2012 15:33:05 +0000
Subject: php upload does not work proper, ["tmp_name"] and other are missing in $_FILES
Groups: php.general 
Request: Send a blank email to php-general+get-317143@lists.php.net to get a copy of this message
Hello, I try the upload files, but in "tmp_name" and other variables are missing in $_FILES. I use php 5.3.8 on SLES11SP2 I can repeat this with: =================================================== <?php if(isset($_FILES)) { var_dump($_FILES); } ?> <!-- The data encoding type, enctype, MUST be specified as below --> <form enctype="multipart/form-data" action="/i3.php" method="POST"> <!-- MAX_FILE_SIZE must precede the file input field --> <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> <!-- Name of input element determines name in $_FILES array --> Send this file: <input name="userfile" type="file" /> <input type="submit" value="Send File" /> </form> =================================================== The $_FILES shows only: array(1) { ["userfile"]=> array(1) { ["name"]=> string(14) "ask_script.xml" } } I traced (strace) the apache process, and I saw, that a temporary file was opened, the text from the file written and than later unlinked. What can be the problem? Kindly regards

« previous php.general (#317143) next »