Hello.. Would like to know if there is a way for a web application to allow file download without displaying "Open/Save" dialog box and instead automatically dump the file in a specified directory, say for instance, client C:\ directory or in another location in the network.
Appreciate any ideas because i'm still very unfamiliar on how to implement this and if it is really possible. Thanks in advance!
(Not a general Java question - maybe HTML/JavaScript?)
I certainly hope what you suggest cannot be done. If it could, bad people would find it even easier to craft Web sites that save all sorts of nasties onto the user's disk.
Any good browser should make it very clear to a user when something is being downloaded to their disk and should give them an option to say "no".
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Only way I could imagine this could ever happen is by using a signed applet - which already requires the user to give the applet permission to access the local machine.
Security wise, the web app will only be deployed in an intranet site, which assumes that it is a trusted site. Might explore on signed applets then. Would just like to know if it can allow write access to other machines in the network aside from the client/local machine. Thanks again...
I have given this a lot of thought, because I am trying to do something vaugely like what you say - and have decided that I have to write both ends. Else it becomes a nightmare scenario such as the others are warning of and has been repeatedly discussed in and out of internet security discussions.
By writing both ends and having the whole concepting available to you, you will find the traditional approach to this is make some 'folder' to be 'root' as presented to the outside world. There are file transfer sample projects, but it takes a lot of diggin to get a sane and sufficient implementation. Cay S. Horstman - core Java - Sun Microsystems Press has a very good discussion of this.
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
A lot of people cry when they cut onions. The trick is not to form an emotional bond. This tiny ad told me:
a bit of art, as a gift, the permaculture playing cards