IIS 7 and Above
Application Request Routing (ARR)
ARR issue with content-disposition
Last post May 27, 2018 07:39 AM by email@example.com
May 24, 2018 10:37 AMfirstname.lastname@example.org|LINK
Hi we are using ARR 3.0
We create a file dynamically and download it to the client
When we are doing this through the ARR, the content-disposition in Hebrew is Gibrish
When doing this directly to the same site (Not through the ARR) the file names in Hebrew are OK
Could this be a bug? Does anyone has any idea what could cause it?
Already installed Hebrew language pack on the ARR machine and it did not change anything..
May 25, 2018 03:26 AM|deepakpanchal10|LINK
The header also allows you to control the default file name. This can be handy if you’re generating the content in something like getfile.aspx but you want to supply a more meaningful file name to the user.
For dynamically generated content you would need to add this header in the page’s server side code.After adding the header, the browser will always prompt the user to download the file.
For more detailed information, you can try to refer link below may help you.
Four Tips for Setting up HTTP File Downloads
May 27, 2018 07:39 AMemail@example.com|LINK
I already have all of that :)
The problem is that the encoding of the file name in the content-disposition is changed when accessing through the ARR
On direct access to the IIS the value is OK:
content-disposition: attachment;filename=marketman order no 4017736.xlsx
When accessing the same direct link through the ARR the encoding is wrong:
content-disposition: attachment;filename=×ž×¨×§×˜×ž×Ÿ ×ž×¡×¤×¨ ×”×–×ž× ×” 4017736.xlsx
Thanks for the help