Menu

#213 POSTData array broken for multipart forms

Minor_Bug
open
nobody
5
2005-11-03
2005-11-03
Davin
No

To transmit a file with a form, the form tag must
specify its enctype as "multipart/formdata". ProtoMUCK
provides an array called POSTData for easy handling of
data submitted via POST. It consists of keys that
represent the submitted form data, each one containing
a list-type array of values.

When a multipart POST is sent to Protomuck, the
POSTData array contains a single key and list-array.
Here's an example of one:

KEY:
-----------------------------24464570528145
Content-Disposition: form-data; name

VALUE
(list-type array)

The problem is that this "key" is actually part of the
multipart form body, along with the contents of the
list-style array. Furthermore, the syntax for the key
is incorrect. It's supposed to look like so:

-----------------------------24464570528145
Content-Disposition: form-data; name="namevalue"

If you examine the first item of the list array, you'll
find "namevalue". The remaining portion of the list
array is correctly formatted.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB