Problem Uploading files with Webclient.uploadfile()
Posted on 2005-05-17
I'm trying to write a program to allow a user to select a file(in particular image files) and upload it to a remote server. Currently I'm to use the webclient uploadfile method. If I use it with the "POST" verb I get a eror from the server: method not allowed. I've tried the "PUT" verb as suggested by another question here at experts=exchange. The file gets uploaded, but can no longer be opened, there are errors in the file. I tried a textfile as well, it could be opened but there was added text. Any help is as always appreciated. I'm also not set in stone using uploadfile so if you have another way of uploading the files I'm willing to try them. Thanks in advance.