upload file to web-browser

  • Thread starter Thread starter reidarT
  • Start date Start date
R

reidarT

Is there an example how to upload a file from a clients machine to an
ftp-server
from a web-application? (No ftp-software!)
reidarT
 
Is there an example how to upload a file from a clients machine to an
ftp-server
from a web-application? (No ftp-software!)


I suggest you use a HTTP Upload instead (to the web server) and then let
the web server handle the FTP connection to the destination server. This is
a more secure and reliable method.
 
In a Windows form I use

My.Computer.Network.UploadFile( _
"File to upload", _
"ftp://ftp-address" & _
"/path/filename".mdb", _
"ftp-username", "ftp-password", True, 5000)

to do this uplaod.
How can I do the same in an aspx-page?
reidarT
 
Reidar,

This is a piece of cake in frontpage, aspnet, asp, php etc.

It needs however something special on the serverside to make it possible
which is provided with those uploads in the "input = file runat server" (in
the case of ASPNET)

With clean HTML it is not possible.
(And than not to an FTP server but to an IIS server).

Therefore what is the environment you are busy in.

(You never can upload a file from a client unatended to a server, that is
called hacking and prevented by all browsers).

Cor
 

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

Similar Threads


Back
Top