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

Download File Button doesn't work because of extension. #36

Open
kolorafa opened this issue Jan 30, 2015 · 0 comments
Open

Download File Button doesn't work because of extension. #36

kolorafa opened this issue Jan 30, 2015 · 0 comments

Comments

@kolorafa
Copy link

The download button link ends with filename.pdf and cake strips .pdf because CakePDF plugin in routes.php have Router::setExtensions(array('pdf'));

To fix this you could append "/" or "/something" at the end of the url then extension will not be stript or use some other magic.

I did install Brownie and CakePDF.
When i upload a pdf file using Brownie, everything works fine.
View opens file. But download button link ends with file name.pdf and cake strips .pdf because CakePDF in routes.php have Router::setExtensions(array('pdf'));

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