Re: File Upload Fails After Upgrading to 3.0.17
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: File Upload Fails After Upgrading to 3.0.17 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20568@lists.php.net to get a copy of this message | ||
Should be fixed in CVS. Try a snapshot from snaps.php.net
On Tue, 17 Oct 2000, Matt Henderson wrote:
> 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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>