VB.NET Application File Upload to Webserver

  • Thread starter Thread starter randall g
  • Start date Start date
R

randall g

Hello, I have been trying to figure out how to make a VB.NET application
program (not a web page) upload a file to a .NET website. File upload
from a webpage form is straightforward and works fine, but when I try to
use the WebClient.UploadFile method in an application program (to the
same webpage), the file is transmitted but ignored by the web page.

I suspect there are some additional form variables that are required,
but there does not seem to be a way to set any with the UploadFile
method. I have come accross some comments that the UploadFile method is
basically broken.

Is there a working example of this anywhere? I have been unable to find
one.
 
I haven't tried this method but I have in the past set up a web service to
accomplish the same thing

This is really only a few lines of code in both apps, you should look into
it...

Cheers

Jody
 
Use POST with http classes to post the file to a web page which will then
save it to the required location.
 
Back
Top