[SOLVED] AJAX + force_download |
[eluser]PV-Patrick[/eluser]
I am trying to get the force_download function to work with AJAX, or even just with direct headers and I am unable to get it to work. The force_download works fine without using AJAX request. Does anyone have any advice on how to go about using AJAX for a forced download? I have seen a couple topics but am unable to get anything working, thanks!
[eluser]narkaT[/eluser]
as far as I know it's not possible. an ajax request will not trigger a download, whatever headers you send. you could only use "[removed].href" to redirect the browser to the download.
[eluser]PV-Patrick[/eluser]
I know some people who have gotten it to work with the headers, however I am unable to get it working.... ;(
[eluser]narkaT[/eluser]
[quote author="PV-Patrick" date="1227578183"]I know some people who have gotten it to work with the headers[/quote] are you 100 percent sure they manged it trough an ajax-request? it seems to be tested that that is not possible
[eluser]PV-Patrick[/eluser]
I stand corrected, I have asked them both if they were 100% positive it was AJAX and the answer was no, haha. Thanks again, setting to SOLVED. |
Welcome Guest, Not a member yet? Register Sign In |