Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Content disposition parameters in Jira

Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 7, 2018

Hi! 

 

Everybody uses so nice feature related view in Browser attachment. e.g. txt file show automatically in browsers. (It shows because App provides headers like "Content-Disposition: inline; filename*=UTF-8''text.txt;")

 

Why we can not use this feature for the SVG files? e.g.

I have put into text mode comment block into the Jira text like this

[^gnu.svg]

 

After that tomcat(or webapp) natively provide header like "content-disposition: inline; filename*=UTF-8''gnu.svg;" instead of "content-disposition: attachment; filename*=UTF-8''gnu.svg;". 

 

It will help decreasing configurations on proxy server like :

 

location /secure/attachment {

proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://jira_upstream;

location ~ "\.svg"{
add_header X-Whom www-node01;
add_header Content-Disposition "inline;";
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://jira_upstream;
}
}

 

What do you think about this feature? 

 

 

Cheers,

Gonchik Tsymzhitov

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events