[Featureserver] [PATCH] handle multipart POSTs

Dan Lipsitt danlipsitt at gmail.com
Wed Jan 16 18:30:52 EST 2008

On Jan 16, 2008 5:30 PM, Christopher Schmidt <crschmidt at metacarta.com> wrote:
> This only adjusts the wsgi handler. Is this a problem specifically for
> that handler for some reason?

It may be present in the other handlers, but I'm not using them right
now. The logic that was broken was in the wsgi handler, but perhaps it
could be factored out and used for all of them.

> Can you explain how I encounter misbehavior this fixes?

It was treating multipart boundaries as part of the uploaded file.


Notably, the php Request module builds multipart POST.

I'll try to cook up a test case if you like, but I don't have much time today.

Note that my patch doesn't add the ability to post multiple files (it
takes the first and discards the rest), but it could probably be
modified to.

> Isn't there already a working GML service via the WFS service? Or is
> there something important/different between the two?

It's read-only. I implemented handle_post() for item creation.

Thanks for your attention,

More information about the Featureserver mailing list