Solved

ftp with javascript

Posted on 1997-03-14
4
177 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

746 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

13 Experts available now in Live!

Get 1:1 Help Now