Jump to:
| Project: | Table Export |
| Version: | 5.x-1.0-3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Issue Summary
Many IE7 users were unable to download and save the CSV files. Seems to be a Header issue. I removed the following lines from the export_csv.module file:
header("Content-type: text/x-csv");
header("Content-Disposition: attachment; filename=table_export.csv");
header("Pragma: no-cache");
header("Expires: 0");
and added:
Header('Content-Type: application/force-download');
Header('Content-disposition: attachment; filename=filename.csv')
As with my other issue, I am not certain that this is the correct and exact fix; however, my IE7 users are now able to download and save the CSV file. (BTW, I have modifed the code to take the Title of the page the table is on and use it for the filename. Let me know if you would like to see my changes. Might not be pretty, but it does work in my environ.)
Thanks for a very useful module,
mlcc2000
Comments
#1
Thanks for the bug report, if you can email your changes to info@vision-media.ca we will certainly get on it as soon as we can thanks!
#2
Thats strange, I tested the module on a few computers here in multiple browsers including IE7 and both formats appear to work fine, definatly something worth looking into.
#3
I emailed you my changes. I am running Drupal on IIS 5.0 - not my choice but my employer's requirement.