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

Inline attachments #43

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Inline attachments #43

wants to merge 15 commits into from

Conversation

jlazic
Copy link

@jlazic jlazic commented Nov 2, 2015

This commit adds new argument that enables inline attachment in Content-Disposition. This enables user to have file displayed inline and force filename via attachment_filename.

@vstoykov
Copy link

I'm wondering if it will be better to use:

return sendfile(request, '/home/john/myfile.pdf', inline=True, attachment_filename='myfile.pdf')

Instead of passing both attachment and inline.

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

Successfully merging this pull request may close these issues.

6 participants