curl-users
Re: Uploading from files whose name contains a comma
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 16 Jul 2009 16:16:28 +0200 (CEST)
Date: Thu, 16 Jul 2009 16:16:28 +0200 (CEST)
On Thu, 16 Jul 2009, Stefan Klinger wrote:
> To me it seems impossible to post data from a file whose path contains a
> comma:
>
> $ echo hello > a
> $ mkdir x,y
> $ echo world > x,y/b
> $ curl -F 'aaa=@a' -F 'bbb=@x,y/b' stefan-klinger.de
Right, -F has no way to "quote" the comma so this is limitation of how it can
be used. A work-around is of corse to rename the dir/file before the upload
(and then rename it back). I'd be interested in a patch that fixes this
oversight.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2009-07-16