Solved

ftp with javascript

Posted on 1997-03-14
4
183 Views
Last Modified: 2008-02-26
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.
0
Comment
Question by:verminaar
4 Comments
 
LVL 1

Expert Comment

by:fun
ID: 1265009
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
 
LVL 1

Expert Comment

by:Fordream
ID: 1265010
I think the best way to do this is using CGI & HTTP-authorization. Javascript can't do this.
0
 

Accepted Solution

by:
mittalk033197 earned 100 total points
ID: 1265011
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
 
LVL 1

Expert Comment

by:moorep
ID: 1265012
Garbage. Javascript CAN do this. Evaluate this answer so i can give you the answer.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now