Javascript Handling Of Php Readfile Octet Stream
OK, I've had a good read through the 'Related Questions' section and I haven't found this answer. I'm using an ajax request to force a php download. Things are working fine on t
Solution 1:
Here's the answer I was looking for:
window.open("downloadPage.php");
...which pops up a box every time. The problem with the ajax request was that the returned file stream was interpreted as XMLHttpRequestObj.reponseText
.
The browser apparently interprets this differently and doesn't allow the download.
Post a Comment for "Javascript Handling Of Php Readfile Octet Stream"