Hi there! > 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 value
Yes!!! That did it. It doesn't work all the time. For some reason it fails at times, even with the same image being uploaded, but it does at least work now. I saw that option, but given that the following text was preceeding it, didn't give it further thought. ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). upload_tmp_dir = c:\\windows\\temp > Also - 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. Yep. That was taken care of. Thanks again, Jose > Cheers, > Neil Smith. > > At 00:39 25/09/2002 +0000, you wrote: > >From: "Jose Fandos" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]>, > > <[EMAIL PROTECTED]> > >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 > > __________________________________________________________ > > VideoChat with friends online, get Freshly Toasted every day at > http://www.fresh-toast.net : NetMeeting solutions for a connected world. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php