ftp with javascript

hi, i would like to upload a file from a form to a server.
the personn would have ton enter the name and the passwd of the account before choosing a file and then send it to the account.
Thanx.
verminaar.
verminaarAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mittalk033197Connect With a Mentor Commented:
Javscript could not do this and yet provide enough security.
I would recommend either using cgi or allowing people to
ftp to your account and u/l files. FTP would be the safest way !
If you have system privileges you could set up a dummy directory that could be accessible or on NT allow access to only a particular directory !

Java and Java script are very vunerable to hackers, especially with the no. of class file dissamblers available on the web.
0
 
funCommented:
You want to upload a file from the server to the user if he enters the correct password? This is simple to do in javascript, but can be defeated by anybody smart enough to look at your code and figure out the password or url of the file. Is this what you really are trying to do? This is commonly done in CGI, and can also be done in java, but a really smart person can beat java also by using a disassembler on your class file. For the best security, use CGI.
0
 
FordreamCommented:
I think the best way to do this is using CGI & HTTP-authorization. Javascript can't do this.
0
 
moorepCommented:
Garbage. Javascript CAN do this. Evaluate this answer so i can give you the answer.
0
All Courses

From novice to tech pro — start learning today.