| Author |
Avoid Dialog box when downloading a file
|
deep menghani
Greenhorn
Joined: Oct 07, 2010
Posts: 7
|
|
Hi,
Query :
When we export data in a file through java code , is there any way to avoid that pop up which asks for OPEN / SAVE / CANCEL .
Example : I have a link .If I click the link the file should be directly saved on to the mentioned disk location without the pop up.
Is there any way to do this??
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56544
|
|
There is not. And thank goodness! Imagine the security nightmare if any old web site could write to your file system!
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
deep menghani
Greenhorn
Joined: Oct 07, 2010
Posts: 7
|
|
Agreed..
but since we have source and destination folder information in our application , can there be any way to copy those files from source to destination.?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56544
|
|
|
Are you talking about a client machine that you have credentials for, or any random client?
|
 |
deep menghani
Greenhorn
Joined: Oct 07, 2010
Posts: 7
|
|
yes a specific client machine.
i know the destination folder where in the file should go..
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56544
|
|
|
Do you have login credentials?
|
 |
deep menghani
Greenhorn
Joined: Oct 07, 2010
Posts: 7
|
|
Sorry ..there is no specific client..
it would be different for each user...but the source folder is common .
i.e.
if the link is clicked..the file from source folder should be copied on to client machine..
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56544
|
|
|
Then, no. If you understand about the security problems, then you know this is untenable. You are either going to have to live with the dialog, or use some other means (such as a trusted applet).
|
 |
deep menghani
Greenhorn
Joined: Oct 07, 2010
Posts: 7
|
|
ohh..thank you Bear for your replies..
If you kno of anything I can do to copy the files thru a link please let me know..
thanks again...
|
 |
 |
|
|
subject: Avoid Dialog box when downloading a file
|
|
|