Re: ? (Errr... problem uploading files)
| From: | neil smith | Date: | Wed, 25 Sep 2002 13:58:14 +0000 |
| Subject: | Re: ? (Errr... problem uploading files) | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16002@lists.php.net to get a copy of this message | ||
Hi - it seems from your PHPinfo output that you have not specified, in your PHP.ini file, a directory where the server can put the uploaded files. If this is not specified by a system defaul, you need to specifiy it here. This means that : they will disappear into oblivion (at best). Specifying C://temp or D://WINNT//Temp is a good place to start.
upload_tmp_dir no value no valueAlso - your temp files will not have the name of the file you uploaded, because they might interfere with other files uploaded into the temp dir. They are usually named sequentially, while session files usually have a MD5 based name (long string of alpha characters) Consequently the filenames might be like "php29.tmp" or whatever - not what you sent the file as. To recover the filename , check $HTTP_POST_FILES["fieldname"]["name"] Where fieldname is the name of the browse field that you gave in the forms HTML. Cheers, Neil Smith. At 00:39 25/09/2002 +0000, you wrote:
From: "Jose Fandos" <jose.fandos@sonnd.com> To: <php-general@lists.php.net>,__________________________________________________________ VideoChat with friends online, get Freshly Toasted every day at http://www.fresh-toast.net : NetMeeting solutions for a connected world.<php-windows@lists.php.net>Date: Tue, 24 Sep 2002 19:22:14 +0100 Message-ID: <000401c263f7$50dfa060$2000a8c0@YAL> MIME-Version: 1.0 Content-Type: text/plain;charset="us-ascii"Content-Transfer-Encoding: 7bit Subject: Errr... problem uploading files Hi, Under PHP 4.2.3 and 4.2.2 with Apache 1.3.6, all under Windows XP, when a form has a file input field, if I browse and upload, all the information going with the post to the server gets lost!!! There is no trace of it (and this is what's really frustating me, no trace in any log of any errors). var_dump's show everything empty. If I submit without browsing (i.e. no file selected), I do see the $_FILES array signaling an error, but otherwise complete, and everything else (though, on further testing, it seems that