Hi Edi,

while file uploads only make sense with form data, I could see how one would encounter an API that uses PUT with form data. I have not seen such an API myself, but I see no reason not to support such APIs. Do you?

-Hans

Am 17.07.2013 10:42 schrieb "Edi Weitz" <edi@agharta.de>:
I'm also on vacation, so just a quick response:

On Wed, Jul 17, 2013 at 8:54 AM, Hans Hübner <hans.huebner@gmail.com> wrote:
> First off, it seems that DRAKMA restricts the use of file upload parameters
> to POST requests in the WHEN form that you pasted.  I do not think that is
> the right thing, as the HTTP standard does not restrict the use of request
> bodies to specific methods.

I think you're mixing up two things - request bodies and parameters.
Drakma doesn't disallow request bodies - that's what CONTENT is for.
But Drakma simply doesn't know what to do with file parameters if
you're not sending a POST request as they only make sense with form
data.

I don't think the patch is useful.

Peter, why are you not using :CONTENT?

Cheers,
Edi.