Sending files AND informations by POST in C#
Hey peeps, im lost in this one:
I need to send image thru POST method to the php script waiting on the other side, but i need to send another informations with it too, such as send the file and send info about uploader with it... Everything I've found so far is a way how to upload a file, OR how to send informations, but I need to send them together (the script receives the file with another informations about it).
Thanks in advance,
Soap.

Bechir BejaouiRank #144 · 15.9K reputationPosted Nov 30, 2008, 6:27 AM EST
System.Net.WebClient oClient = new System.Net.WebClient();
oClient.UploadFile("yourAdress", "POST", "filepath");
if you want to upload data, suppose that you want to upload an Image for example
oClient.UploadData("yourAdress", yourImage);
Soap McTavish15 reputationPosted Dec 2, 2008, 8:49 AM EST
Bechir BejaouiRank #144 · 15.9K reputationPosted Dec 2, 2008, 11:06 AM EST
Soap McTavish15 reputationPosted Dec 3, 2008, 2:31 AM EST
Bechir BejaouiRank #144 · 15.9K reputationPosted Dec 3, 2008, 5:05 AM EST