uploading file with webclient

dewbaboeram

New member
Joined
Aug 18, 2005
Messages
3
Programming Experience
1-3
Hi,

Here is a problem.
I have a htmlinputfile control which enables me to select a file for uploading to a webserver in the directory images.
I use the webclient class to do the uploading. This is the code

Dim wbc As New WebClient()
wbc.UploadFile(strUri, "PUT", strFileName)
where strUri=http://www.mywebsite.com/images
and strFilename = "filename.gif"

I get the error: The remote server returned an error: (404) Not Found

Any idea how to solve this problem?

Dew
 
Back
Top