Previously  I had written two posts on how to upload files to a web server  one for the case when the size of the HTTP request is small  and the other for the case when the size of the HTTP request is large