How to use WebClient.UploadFileAsync to upload files and POST Params as well?
<p>I am using <code>WebClient.UploadFileAsync</code> to upload local files to a web server and I would also like to pass some parameters with the post as well. I would like to send a few fields that will tell the PHP code on the server specific locations on where to save the uploaded files.</p>

<p>I tried to put the fields directly into the url, for example:</p>

<pre><code>WebClient client = new WebClient();
Uri uri = new Uri("http://example.com/upload.php?field1=test");
client.UploadFileAsync(uri, "POST", "c:\test.jpg");
</code></pre>

<p>The PHP code returns false for <code>isset($_REQUEST['field1'])</code>.</p>

<p>Thank you for any suggestions.</p>

<p><a href="http://stackoverflow.com/questions/4615507/pass-post-params-to-webclient-uploadfileasync">NOTE: this question was also asked in very similar format for vb.net a while back, but it did not get any answers,</a></p>
