March 22nd, 2003, 12:58 PM
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.
March 22nd, 2003, 02:42 PM
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, 03:01 PM
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:
\"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
March 23rd, 2003, 08:24 PM
too bat it isn't possible.
thanks for replying.
March 25th, 2003, 02:00 AM
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, 06:01 AM
March 25th, 2003, 06:09 AM
Tedob1, your first link was what I meant.
a lot of thanks, man.
March 25th, 2003, 11:05 AM
you can use active X to upload file into somebody computers its posseble to run any proggy
HATED BY MANY
RESPECTED BY FEW
LOVE BY ALL