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

Add support for custom content disposition and respect WAGTAILDOCS_SERVE_METHOD for public files #22

Open
zerolab opened this issue Jan 28, 2021 · 0 comments

Comments

@zerolab
Copy link
Member

zerolab commented Jan 28, 2021

At the moment public files are redirected to their public URL and rely on whatever storage is used to provide content disposition

Wagtail 2.11+ allows customising content-disposition: https://github.com/wagtail/wagtail/blob/stable/2.11.x/wagtail/documents/models.py#L181

Would be good to let the core serve method complete its thing for public files, rather than plain redirect to the file

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