We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe29aab commit d403ba9Copy full SHA for d403ba9
flask_pymongo/__init__.py
@@ -170,6 +170,7 @@ def get_upload(filename):
170
mimetype=content_type,
171
direct_passthrough=True,
172
)
173
+ response.headers['Content-Disposition'] = 'attachment; filename={}'.format(filename)
174
response.content_length = fileobj.length
175
response.last_modified = fileobj.upload_date
176
# Compute the sha1 sum of the file for the etag.
0 commit comments