cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl: (26) failed creating formpost data

From: Laurent Humbert <laurent.humbert_at_free.fr>
Date: Sat, 21 Jan 2006 08:56:13 +0100

Hi List,

I'm using curl to upload files with HTTP Post. Works great, expect
when there's a space in the path to the file to upload.

-F filedata0=@/Users/me/Desktop/theFile.jpg

How should a path such as

/Users/me/Desktop/the File.jpg

be encoded ?

Tried:

-F filedata0=/Users/me/Desktop/the%20File.jpg
-F filedata0="/Users/me/Desktop/the File.jpg"
-F filedata0='/Users/me/Desktop/the File.jpg'

to no avail.

Thanks very much

L
Received on 2006-01-21