cURL / Mailing Lists / curl-users / Single Mail


curl: (26) failed creating formpost data

From: Laurent Humbert <>
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 ?


-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

Received on 2006-01-21