File Upload Fails After Upgrading to 3.0.17
| From: | Matt Henderson | Date: | Tue, 17 Oct 2000 07:16:08 +0000 |
| Subject: | File Upload Fails After Upgrading to 3.0.17 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-20551@lists.php.net to get a copy of this message | ||
Hello,
After upgrading from PHP 3.0.x to 3.0.17 on our RedHat-Linux/Apache machine,
our web server is no longer accepting form input with encoding
multipart/form-data. Submission of such forms returns an immediate "Document
Contains No Data" error.
For example, the following simple form fails:
<?
$exportFile = "/uploads/uploadedFile";
if (isset($userfile)) {
copy($userfile,$exportFile);
unlink($userfile);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head> <title>Upload Example</title> </head>
<body>
<form enctype="multipart/form-data" action="upload.php3"
method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="5000">
<input type="file" name="userfile">
<input type="submit" name="service" value="Upload!">
</form>
</body>
</html>
NOTE: This script fails even if the PHP code is removed-- it seems the
server will now simply not accept multipart/form-data forms.
Does anyone on this list have an idea what could be the problem?
Please copy me on any replies, as I'm temporarily unsubscribed to the list
traffic while traveling.
Many, many thanks in advance,
-- Matt Henderson
--
MAKALUMEDIA INTERNET & ENGINEERING SERVICES GMBH
matt@makalumedia.com | http://www.makalumedia.com/
Robert-Bosch Strasse 7, 64293 Darmstadt, Germany
Tel: +49 6151 872 4600, Fax: +49 6151 872 4619