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
 
Back
Top