curl-users
Re: Fwd: Blank file upload changed between 7.28 and 7.29
Date: Mon, 4 Mar 2013 13:42:28 +0100 (CET)
On Wed, 27 Feb 2013, ogondza wrote:
> For 7.28 a probably couple of earlier versions this worked just fine:
>
> curl -F "file_input_filed=@/dev/null;filename="
>
> However, from 7.29 it gives "curl: (43) A libcurl function was given a bad
> argument" and sends nothing. This one seems to do the trick:
>
> curl -F "file_input_filed=@;filename="
>
> but it does not work in earlier versions of curl (curl: (26) couldn't open
> file ""). Is there any way to do the same in both versions?
Thanks for this report!
Ack. This is indeed a bug. It was introduced with commit f4cc54cb4746ae[*] in
an attempt to reject specifying a directory there but accidentally we also
removed this ability.
You up to attempting a fix for this?
[*] = https://github.com/bagder/curl/commit/f4cc54cb4746ae5a6d
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-03-04