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

File download Content-Type is application/octet-stream #152

Closed
luya-bot opened this issue Jun 7, 2018 · 0 comments
Closed

File download Content-Type is application/octet-stream #152

luya-bot opened this issue Jun 7, 2018 · 0 comments

Comments

@luya-bot
Copy link

luya-bot commented Jun 7, 2018

This issue has originally been reported by @cebe at luyadev/luya-module-cms#85.
Moved here by @nadar.


I uploaded a PDF file for download. Linking to that file presents the dowload as Content-Type: application/octet-stream which causes the browser to be unable to show it as PDF and will only save the download. Ideally serving the file with the correct content type would allow directly opening it as PDF.

Given that Type: pdf is already shown in the admin backend I assume the information is already available for serving the correct mime type.

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

No branches or pull requests

2 participants