Bug #16719 Updated: tmp_name = none

From: Date: Sun, 21 Apr 2002 18:27:28 +0000
Subject: Bug #16719 Updated: tmp_name = none
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-5515@lists.php.net to get a copy of this message
ID: 16719 Updated by: sniper@php.net Reported By: new353@hotmail.com Status: Bogus Bug Type: HTTP related Operating System: win98 -PHP Version: 4.2.0 +PHP Version: 4.1.2 New Comment: The bug system is not the appropriate forum for asking support questions. For a list of a range of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php If you'd make that MAX_FILE_SIZE value bigger..you might have a chance..now it only allows uploading of about 1kb files. Not a bug. Previous Comments: ------------------------------------------------------------------------ [2002-04-21 08:03:43] new353@hotmail.com sorry ! I'm trying to do a file_upload with a simple form and somehow I can't get the file uploaded to the directory. I tried to print the array ($HTTP_POST_FILES) to get some information about what is going wrong with my upload and thats when I realized that the print gave me 'none' for uploaded file tmp_name and '0' for uploaded file size. // html <html> <body> <form enctype="multipart/form-data" action="upload.php" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="1000"> Send this file: <input name="userfile" type="file"> <input type="submit" value="Send File"> </form> </body> </html> //php <?php print_r ($HTTP_POST_FILES); // or this $temp_name = $HTTP_POST_FILES['userfile']['tmp_name']; $size = $HTTP_POST_FILES['userfile']['size']; echo ($temp_name); echo ($size); ?> ------------------------------------------------------------------------ [2002-04-21 07:36:04] mfischer@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". ------------------------------------------------------------------------ [2002-04-21 07:29:53] new353@hotmail.com Win 98, Apache 1.3.24 and Php 4.1.2 print_r ($HTTP_POST_FILES) tmp_name = none and size = 0 safe_mode = Off, so where did I go wrong ? thanks ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16719&edit=1

« previous php.bugs (#5515) next »