Re: [PHP-DEV] Re: PHP 4.0 Bug #4439 Updated: PHP doesn't handle content-transfer-encoding header on form-based file upload From: Sascha Schumann (sascha <email protected>)
Date: 07/31/00

On Mon, 31 Jul 2000, Rasmus Lerdorf wrote:

> Whatever is sending that is not MIME compliant. Double quotes are not
> optional in the Content-Disposition header. ie. it should be:
>
> Content-Disposition: form-data; name="input"

    According to RFC 2183 "The Content-Disposition Header Field,"
    specifying the filename should look like:

        Content-Disposition: form-data; filename=some.jpeg

    The BNF in chapter 2 does not use quoted-string for the
    filename parameter. It also restricts the filename parameter
    to US-ASCII (see 2.3 "The Filename Parameter").

    - Sascha

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>