php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31412 Problem when sending multipart/form-data
Submitted: 2005-01-04 23:14 UTC Modified: 2005-01-06 12:55 UTC
From: info at bodoo dot net Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.3.10 OS: Linux
Private report: No CVE-ID: None
 [2005-01-04 23:14 UTC] info at bodoo dot net
Description:
------------
when posting an form with the webbrowser mozilla firefox an dialog box appears that says "The document has no data" even when the form has data and works with explorer.

This problem started when we upgraded to version 4.3.10, it worked fine in 4.3.9

I have tested to change the version back to 4.3.9 and then it works.

The form uses enctype="multipart/form-data" for making it possible to upload a picture. When posting the form with an picture it works so perhaps there is something wrong with posting mulitpart/form-data.



Reproduce code:
---------------
To reproduce the failure go to this address, it?s ok to post a  new ad. Put php as a name and I now it?s a test ad.

http://www.bodoo.net/NewAd/kategori.php

Choose to make an ad for cars and fill in a 
name 
email
subject
text
currancy
brand
miles
check the agree box

You should now get an dialog box wich says '
"The document has no data"

If you repeat the above but ad an picture it works.





Expected result:
----------------
The expected result should be a confirmation page that says 
"Your ad i now saved to our database"

Actual result:
--------------
A dialog box that says "The document has no data"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-06 12:49 UTC] info at bodoo dot net
Thank you Sniper for your swift response and the perfect result. The new version is working great.

Once again thank you all who is developing php, you are doing a great work.

//

Martin Brolin
bodoo.net
 [2005-01-06 12:55 UTC] derick@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 05:01:32 2024 UTC