Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FireFox and IE not adding file extension #6

Open
johnhoysa opened this issue Nov 5, 2013 · 1 comment
Open

FireFox and IE not adding file extension #6

johnhoysa opened this issue Nov 5, 2013 · 1 comment

Comments

@johnhoysa
Copy link

Having an issue where IE9 and FireFox download the file but do not add the file extension. Webkit browsers seem to handle this just fine. Using EE 2.7.2.

Thanks for a great plugin!

@johnhoysa
Copy link
Author

Added to line 70 - header( 'Content-Disposition: attachment; filename="MyName.ics"' );

Forced the file to always be named the samething but also forced the file extension to be added and solved the issue.

EDIT
Made it a little more dynamic with the help of a co-worker.
$filename = ee()->TMPL->fetch_param('filename');
if (empty($filename)) $filename = 'MyName.ics';
header( 'Content-Disposition: attachment; filename="'.$filename.'"' );

Then in my template
{exp:easy_ical:calendar timezone="Central/Austin" name="My Name Here" filename="{url_title}.ics"}

Everything is working exactly as I want it to now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant