WebClient.UploadFile; Multi-Part Forms

  • Thread starter Thread starter teej
  • Start date Start date
T

teej

Hello,

I am having trouble posting data to an HTTP form that includes both field
information and a file (for upload).

A couple of issues:
1. It would seem that WebClient.UploadFile is capable of posting a file
only (no additional field data), and it can only be read from an existing
file on the file system. I would like to post field info and the file in
the same request.
2. I've seen reference on the web
(http://www.c-sharpcorner.com/Code/2003/May/DotNetBugs.asp) that the
Web.Client class does not conform to the protocol for multi-part form data.
Any comments?

Thanks very much,

Jame
 
Back
Top