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.
I was using the 3.0 compatible version of the SecureFiles module. Once a folder in assets is marked as secure in the backend, the module adds a .htaccess file to the folder and sends any requests to that folder through main.php to detect member permissions. Everything was working fine on 3.0.4 with the following director rules:
I am upgrading to 3.1 now and when I attempt to view a file located in a folder marked as secure ( for example:
http://mysite.com/mypage/assets/Secure/securefile.m4a), I get the following error:
Action 'securefile' isn't available on class SecureFileController
Do I need to change my route configuration or does this have anything to do with the changes to $allowed_actions in 3.1?
Thanks for any help.
You probably just need to take off the $Action - 'assets': 'SecureFileController' as I assume everything would just go through the 1 action?
There is a 3.1 compatible branch of secure files here,
https://github.com/timsnadden/silverstripe-securefiles/tree/3.1 - however it suffers from the same issue as previously mentioned regarding the foldername being mistaken for an action.
1) What are the best ways to debug routing issues?
2) Is there any way in routes.yml or indeed the controller to wipe and previous routing rules and start afresh.