Uploading a File

So I wanted to upload a file or files from a Windows Application that I was developing, so a quick lookup on MSDN provided the following (link): –

On the face of it it couldn’t be easier.  If you take a look at the How To article, you can see that it doesn’t explain how to code the web side of the app or what’s required.

After much Googling, I finally come up with the answer, UploadFile is a wrapped for the WebClient.UploadFile Method.   Reading this article provides more information.

The receiving ASPX page or upload.aspx as in the above example, requires the following code.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.