cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

how set a unicode or wstring file name for CURLFORM_FILE

From: Seymen Ertas <seymen_at_seymen.com>
Date: Wed, 23 Feb 2005 16:57:58 -0500

Hi all,

Anybody have an idea on how i can add a filename to my form that is a wchar* ?

When ever i pass in the filename as a wchar* curl only recognizes the first letter of the file so it always has a read error.

Here is the line of code that i am having issues with:
curl_formadd(&formpost, &lastptr, CURLFORM_COPYNAME, "sendfile",CURLFORM_FILE, fileToUpload.c_str(),CURLFORM_END);

where fileToUpload is wstring

Any help will be appreciated.

Thank You
Received on 2005-02-24

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET