Bug #16719 Updated: tmp_name = none
| From: | new353 at hotmail dot com | Date: | Sun, 21 Apr 2002 12:03:53 +0000 |
| Subject: | Bug #16719 Updated: tmp_name = none | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-5503@lists.php.net to get a copy of this message | ||
ID: 16719
Updated by: new353@hotmail.com
Reported By: new353@hotmail.com
Status: Bogus
Bug Type: HTTP related
Operating System: win98
PHP Version: 4.2.0
New Comment:
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);
?>
Previous Comments:
------------------------------------------------------------------------
[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