POST request to upload a string and two files

Just starting out? Need help? Post your questions and find answers here.
Seymour Clufley
Addict
Addict
Posts: 1233
Joined: Wed Feb 28, 2007 9:13 am
Location: London

POST request to upload a string and two files

Post by Seymour Clufley »

I'm writing a program that uploads a string and two files. The files will be big, because they're videos - it could be multiple gigabytes of data. Ideally I want to handle the actual upload in a thread, and to keep the user informed about progress (ie. what percentage of the data has been uploaded so far). The files and string can be sent separately, or as one string (using Base64 encoding). The solution needs to work on Windows, Mac and Linux.

FTP is not an option, which is unfortunate because SendFTPFile() seems to be the only upload command that supports native progress reporting.

What would people recommend? Any advice here would be appreciated.

Thank you.
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."