Solved

ftp with javascript

Posted on 1997-03-14
4
202 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

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 …
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
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…

734 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