Archive download name
This commit is contained in:
parent
d499a8b279
commit
48e1f82bc7
6
app.py
6
app.py
|
|
@ -314,7 +314,11 @@ def download_object(id: int):
|
||||||
|
|
||||||
yield b'\x00' * (512 - bytes_len % 512)
|
yield b'\x00' * (512 - bytes_len % 512)
|
||||||
|
|
||||||
return app.response_class(generate(), mimetype='application/x-tar')
|
return app.response_class(
|
||||||
|
generate(),
|
||||||
|
mimetype='application/x-tar',
|
||||||
|
headers={'Content-Disposition': 'attachment; filename="archive.tar"'}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/static/<path:path>')
|
@app.route('/static/<path:path>')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue