that doesn't work
R
ruperik
@ruperik
0
Reputation
2
Posts
43
Profile views
0
Followers
0
Following
Best posts made by ruperik
This user hasn't posted anything yet.
Latest posts made by ruperik
-
RE: Internet Explorer -- Content-type and Content-Disposition?
so i have a php file that creates a string and returns it as a .csv file with this code:
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=$file");
file_put_contents("php://output", $str);on the client side, i call it with:
window.open(download);
where download is the url + get data that needs to be sent. in firefox, everything works fine. in ie, even that fix above doesn't seem to make any difference. i understand that ie is doing some sniffing, but i don't know what i can do to make it recognize the .csv file.