Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Avoid Dialog box when downloading a file

 
deep menghani
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64975
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is not. And thank goodness! Imagine the security nightmare if any old web site could write to your file system!
 
deep menghani
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64975
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you talking about a client machine that you have credentials for, or any random client?
 
deep menghani
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes a specific client machine.
i know the destination folder where in the file should go..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64975
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have login credentials?
 
deep menghani
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64975
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic