VB.NET Application File Upload to Webserver

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.
 
J

Jody Fisher

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
 
R

Rajesh.V

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top