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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
mittalk033197Commented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
moorepCommented:
Garbage. Javascript CAN do this. Evaluate this answer so i can give you the answer.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.