-
March 22nd, 2003, 01:58 PM
#1
Junior Member
html uploading file
is it possible to write a (java) script in a html page that automaticly uploads (ftp) a file from your hard disk to the ftp-server (when pressing on an "imaged-button")??
I tried everything but I don't manage in getting it working.
thanks.
-
March 22nd, 2003, 03:42 PM
#2
No, it isn't. Java applets shouldn't have access to files on your harddisk at all. Lets say someone makes such an applet which save everything in /mydocuments/ to some server once someone clicks on a button (why even bother to make a button?)... -huge- security violation.
Java programs can perform fileoperations, but Java Applets (the 'programs' or 'scripts' you use in webpages) can't.
I wish to express my gratitude to the people of Italy. Thank you for inventing pizza.
-
March 22nd, 2003, 04:01 PM
#3
As Guus said, applets run inside a "sandbox" on your computer, so that they don't have access to much. As Sun Microsystems says:
"Applets may wreak havoc in their own sandbox, but they cannot disrupt or affect any other sandboxes. Furthermore, restrictions may be placed on what the application can do within their own sandboxes. Thus, the jvm can allow untrusted applications to execute in a trusted environment, without fear of corruption or subterfuge. "
The link below not only includes info about the sandbox but other Java secuirty related info:
http://java.sun.com/marketing/collateral/security.html
\"When you say best friends, it means friends forever\" Brand New
\"Best friends means I pulled the trigger
Best friends means you get what you deserve\" Taking Back Sunday
Visit alastairgrant.ca
-
March 23rd, 2003, 09:24 PM
#4
Junior Member
too bat it isn't possible.
thanks for replying.
greetz
-
March 25th, 2003, 03:00 AM
#5
Bukhari:V3B48N826 “The Prophet said, ‘Isn’t the witness of a woman equal to half of that of a man?’ The women said, ‘Yes.’ He said, ‘This is because of the deficiency of a woman’s mind.’”
-
March 25th, 2003, 07:01 AM
#6
Junior Member
Whenever you have to touch the physical drive of your\remote server, know you have to use server side code. A form can request a file, and the file could very well be uploaded to the webpage, but javascript can't push the information (which resides in the Header) anywhere.
javascript runs on the client side unless specifically mentioned in code, <run-at server>, and even then there are far better languages to use server side, like perl,php,asp etc.
-
March 25th, 2003, 07:09 AM
#7
Junior Member
Tedob1, your first link was what I meant.
a lot of thanks, man.
-
March 25th, 2003, 12:05 PM
#8
Junior Member
you can use active X to upload file into somebody computers its posseble to run any proggy
peace
HATED BY MANY
RESPECTED BY FEW
LOVE BY ALL
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|