Skip to content

Inline attachments#43

Open
jlazic wants to merge 16 commits into
johnsensible:masterfrom
jlazic:master
Open

Inline attachments#43
jlazic wants to merge 16 commits into
johnsensible:masterfrom
jlazic:master

Conversation

@jlazic
Copy link
Copy Markdown

@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
Copy Markdown

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