django-sendfile icon indicating copy to clipboard operation
django-sendfile copied to clipboard

Inline attachments

Open jlazic opened this issue 9 years ago • 1 comments

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.

jlazic avatar Nov 02 '15 19:11 jlazic

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.

vstoykov avatar Feb 12 '16 08:02 vstoykov