ansharma Posted April 26, 2011 Share Posted April 26, 2011 Hi all, is it possible to force download a file as an attachment using ajax? Thanks Quote Link to comment Share on other sites More sharing options...
saurabhx Posted April 26, 2011 Share Posted April 26, 2011 With AJAX you are changing only a small portion of the page, but to force a download you will need to modify the HTTP headers, which are the first things that are sent to the browser. So if you can change the http header of the current page through ajax, you can force download. I *think* it is not possible. Would love to hear if there is a way. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.