Need help using force_download... |
[eluser]BobbyB[/eluser]
Hi everybody, I am having trouble using force_download. I have following code: Code: //Controller: I use an ajax-request to the controller using mootools(Request.HTML) which works fine when trying to delete files. But the download does not Nothing happens at all. Any hints? Cheers&Thanks;
[eluser]narkaT[/eluser]
hint number 1: [SOLVED] AJAX + force_download hint number 2: there is a searchbox in the upper right
[eluser]uptime[/eluser]
Yup, the headers would be an issue. You could use JS to redirect the user to another page (possibly with target="_blank") that will set the header and force the download but keep popup blockers in mind (a link would probably work just fine).
[eluser]BobbyB[/eluser]
Hi guys, sorry, but I it was late last night so I must have missed the thread. I always search for solutions first before I post. Thanks for your help. |
Welcome Guest, Not a member yet? Register Sign In |