Skip to content

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