Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Content-Length header to file download REST API #1212

Closed
luis100 opened this issue Apr 27, 2018 · 1 comment
Closed

Add Content-Length header to file download REST API #1212

luis100 opened this issue Apr 27, 2018 · 1 comment
Assignees
Milestone

Comments

@luis100
Copy link
Member

luis100 commented Apr 27, 2018

On API request:
/api/v1/files/FILEID?acceptFormat=bin
The Content-Length header is not set.

Add file size (if the information is already available) to the StreamResponse and improve ApiUtils to include the Content-Length header.

This is necessary to improve the file previewers.

@luis100 luis100 added this to the 2.3.0 milestone Apr 27, 2018
@luis100 luis100 self-assigned this Apr 27, 2018
@luis100 luis100 assigned nunovieira220 and unassigned luis100 May 24, 2018
@nunovieira220
Copy link
Contributor

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants