Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

file downloading from the server

 
arungnair nair
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have to download a file from the server which is csv file but my client needs not to display the dialog box during the download how can it be done?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the client has an application registered with the browser to handle csv files (like Excel) you can use the "inline" keyword with the Content-Disposition tag to have the browser open the document in an embedded instance of that application.

If the browser doesn't have anything registered, then the only thing it can do is prompt the user for more instruction.
 
arungnair nair
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.. i've tried it but what actually i wanted was to save the file in the client's machine .but that seems impossible with my knowledge in java.Is there any way?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64837
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without their knowledge? That can't be done for obvious security purposes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic