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

Fix for EZP-20741: Allow default content disposition to be overridden #614

Merged
merged 3 commits into from Sep 24, 2013

Conversation

peterkeung
Copy link
Contributor

We have clients who want to set the default content disposition to "inline" for all MIME types. This is hard-coded to "attachment" and you have to set the content disposition to "inline" for each MIME type – this is difficult because you have to build a list of every MIME type and maintain this list for future MIME types.
If you are able to set the default content disposition for all MIME types to be "inline" then you can essentially defer to browser behavior: if it can open a document inline, then it does. Otherwise, it falls back to "attachment" anyway.

@andrerom
Copy link
Contributor

+1

@crevillo
Copy link
Contributor

+1

@peterkeung
Copy link
Contributor Author

Just had another client need something similar. Any barriers to getting this merged?

@andrerom
Copy link
Contributor

review ping @patrickallaert / @yannickroger

@yannickroger
Copy link
Contributor

+1

1 similar comment
@patrickallaert
Copy link
Contributor

+1

andrerom added a commit that referenced this pull request Sep 24, 2013
Fix for EZP-20741: Allow default content disposition to be overridden
@andrerom andrerom merged commit bed5589 into ezsystems:master Sep 24, 2013
@andrerom
Copy link
Contributor

Merged, thanks @peterkeung! :)

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