• Post Reply Bookmark Topic Watch Topic
  • New Topic

<a> is not downloading the file

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am doing the following:



So instead of the file being downloaded, it is being viewed on the browser!

How can i force it download and not view?

Thanks,
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Configure your browser to save text files instead of displaying them; there's nothing the web app can do about that.
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I do that?

Can I download files using jsf actions in backing beans?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're asking how to use JSF and backing beans to download a file but you don't know how to configure a browser to handle a content type, or know how to send a file as an attachment?!
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No I don't that's why I'm asking! Are you willing to tell me
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!