kitware-resonant / dkc-next

Apache License 2.0
3 stars 0 forks source link

Support inline content-disposition and content-type metadata on s3 #127

Open zachmullen opened 3 years ago

zachmullen commented 3 years ago

See https://github.com/girder/django-s3-file-field/issues/197

zachmullen commented 3 years ago

Rather than just redirecting to blob.url in the file download endpoint, we'll need to call some method that allows us to pass an option for content disposition to generate presigned URLs.

brianhelba commented 3 years ago

I needed to close that issue on S3FF because it was out of scope there, but feel free to open an issue on https://github.com/girder/django-girder-utils/ , or just solve it locally in DKC-next and later upstream the solution to https://github.com/girder/django-girder-utils/ so it can benefit other projects.

mgrauer commented 3 years ago

This will allow us to switch between viewing the file directly in the browser versus downloading the file as an attachment.