File upload timeout.

From: Date: Wed, 21 Nov 2001 20:14:08 +0000
Subject: File upload timeout.
Groups: php.windows 
Request: Send a blank email to php-windows+get-10575@lists.php.net to get a copy of this message
I'm trying to do a simple file upload using the sample code from php.net, but after trying everything under the sun, it still doesn't work. I've tried most of the suggestions on php.net and have searched the archives of this mailing list, still to no avail. When I click on "Send File", it appears to be attempting to process the request, but the CGI eventually times out. I'm using very small files for my test files, so file size shouldn't be a problem. I've tried changing several things in the php.ini file also. Does anyone have any suggestions? I've included the code I'm using below. I'm running PHP 3.0.17 under Windows 2000 Professional and IIS 5.0. Thanks in advance, Brian UploadTest.php3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Untitled</title> </head> <body> <form enctype="multipart/form-data" action="UploadTestAction.php3" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="2097150"> Send this file: <input name="userfile" type="file"> <input type="submit" value="Send File"> </form> </body> </html> UploadTestAction.php3: <?php if (is_uploaded_file($userfile)) { copy($userfile, "Images/".$userfile); } else { echo "Possible file upload attack: filename '$userfile'."; } ?>

« previous php.windows (#10575) next »