Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Can't download ICS (Calendar) file after setting it in $allowed_extensions


Go to End


3 Posts   881 Views

Avatar
jkdude

Community Member, 19 Posts

4 July 2016 at 7:01pm

Hi,

I've set the allowed_extension to allow ICS files to be uploaded but now I can't download the file. I've tried setting it in the yaml file and the _config.php file. It's allowing me to upload it but won't download when I go to the file on my browser.

I get a 403 Forbidden error. The message below shows up:

------
Forbidden
You don't have permission to access /assets/calendar/example-event.ics on this server.
------

Can anyone recommend how I could fix this error?

Thanks

Avatar
martimiz

Forum Moderator, 1391 Posts

5 July 2016 at 3:43am

There's a .htaccess file in /assets that limits access to a number of valid file extensions. ics is not in there, so you'd probably have to add it

Avatar
jkdude

Community Member, 19 Posts

5 July 2016 at 11:14am

Hey Martimiz, that worked. Thanks for that.