fix get item file of web plugin

This commit is contained in:
vicholp 2022-08-03 01:22:35 -04:00
parent 1dddcb8455
commit fde2ad3f65
2 changed files with 2 additions and 1 deletions

View file

@ -324,7 +324,7 @@ def item_file(item_id):
response = flask.send_file(
item_path,
as_attachment=True,
attachment_filename=safe_filename
download_name=safe_filename
)
response.headers['Content-Length'] = os.path.getsize(item_path)
return response

View file

@ -92,6 +92,7 @@ Bug fixes:
that casues a crash when ImportAdded plugin enabled.
:bug:`4389`
* :doc:`plugins/convert`: Fix a bug with the `wma` format alias.
* :doc:`/plugins/web`: Fix get file from item.
For packagers: