cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Multiple file upload

From: Tim Bannister <isoma_at_jellybaby.net>
Date: Tue, 8 Nov 2011 22:45:57 +0000

> Hello,
>
> Would it be possible to upload (send) multiple files in one call in C++ without creating the multipart request explicitly ?
> Something like in php for example using @file1, @file2, @file3 ...etc

“For CURLFORM_FILE the user may send one or more files in one part by providing multiple CURLFORM_FILE arguments each followed by the filename (and each CURLFORM_FILE is allowed to have a CURLFORM_CONTENTTYPE).”

—from the manual page for curl_formadd(), not tested.

-- 
Tim Bannister - +44 7980408788 - isoma_at_jellybaby.net

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

  • application/pkcs7-signature attachment: smime.p7s
Received on 2011-11-08