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

Feature Request: Setting Content-Length header for files being downloaded #10927

Open
sergejzr opened this issue Oct 16, 2024 · 0 comments
Open
Labels
Type: Feature a feature request

Comments

@sergejzr
Copy link

I would like to bring to your attention an issue regarding the Content-Length header. Currently, when accessing files through links such as: https://bonndata.uni-bonn.de/api/access/datafile/ID (as well as via persistentId), the Content-Length header is not being set.

This leads to problems with large file downloads (e.g., files over 20GB in our case), where only part of the file is downloaded without the download manager detecting the error.

I understand that using S3 is recommended for large files and likely avoids this issue, but I believe it would be beneficial to address this for file storage as well. Additionally, while I recognize that it may not be possible to calculate Content-Length when zipping files on the fly, this should be feasible for static files.

What kind of user is the feature intended for?
API User, Guest

What existing behavior do you want changed?
Adding Content-Length in response header

What do you think?

Thank you!
Sergej

@sergejzr sergejzr added the Type: Feature a feature request label Oct 16, 2024
@pdurbin pdurbin changed the title Feature Request: Setting Content-Langth header for files being downloaded Feature Request: Setting Content-Length header for files being downloaded Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature a feature request
Projects
None yet
Development

No branches or pull requests

1 participant