Reputation: 1196
From my JSP page I should be able to click on a button which will open the widget to perform file save option. Looks like input tag with type=”xxxx” can be used for file upload. I need to be able to download or save a file. Is there something available?
Upvotes: 0
Views: 686
Reputation: 1551
You need to send the response from server with header
Content-Disposition: attachment; filename="yourfilename.ext"
Then just put <a>
tag in your page with href =
url which serves the file with required response header.
Upvotes: 3