Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Filename in Content-Disposition #58

Closed
eduherraiz opened this issue Dec 27, 2016 · 1 comment
Closed

Filename in Content-Disposition #58

eduherraiz opened this issue Dec 27, 2016 · 1 comment
Assignees

Comments

@eduherraiz
Copy link
Member

In the same feature we are serving the content-disposition in nginx via GET, add another one to put the filename:
"Content-Disposition: attachment; filename="mallorca.jpg"
https://developer.mozilla.org/es/docs/Web/HTTP/Headers/Content-Disposition

@eduherraiz eduherraiz self-assigned this Dec 27, 2016
@eduherraiz
Copy link
Member Author

Added another case in nginx.conf, to solve this

            if ($args ~* "download_filename"){
                add_header 'Content-Disposition' 'attachment; filename="$arg_download_filename"'; 
            }   

Available in 6.2.0b version

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

No branches or pull requests

1 participant