Date: 11/07/00
- Next message: paul <email protected>: "[PHP-DEV] PHP 4.0 Bug #7686: Segmentation fault in complex pages when using sessions"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] phpinfo() Credits"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: gsohl <email protected>
Operating system: Windows NT 4.0 Workstation
PHP version: 4.0.3pl1
PHP Bug Type: *General Issues
Bug description: File Upload Fails with Headers in Unexpected Order
The code for implementing RFC1867 with a file upload (in rfc1867.c) expects headers to be in the order:
--Boundary...........
Content-Disposition: attachment; name="userfile"; filename="boot.ini"
Content-Type: application/octet-stream;
file data.....
--Boundary...........
However, RFC1867 does not enforce this ordering. Some clients generate the Content-Type header prior to the Content-Disposition header which causes the file upload to fail, without any error message being generated.
I discovered this using a set up components from Dev-Soft (www.dev-soft.com) in Borland's Delphi. Their MIME component generates the multi-part form data for a file with Content-Type before the Content-Disposition. After beating my head against the wall for a few hours I finally figured out where the problem was. Fortunatly I was able to circumvent their ordering, although it made my code pretty kludgy.
-- Edit Bug report at: http://bugs.php.net/?id=7685&edit=1-- 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>
- Next message: paul <email protected>: "[PHP-DEV] PHP 4.0 Bug #7686: Segmentation fault in complex pages when using sessions"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] phpinfo() Credits"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

