博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
How to download a file with plus symbol(+) filename in IIS?
阅读量:6241 次
发布时间:2019-06-22

本文共 969 字,大约阅读时间需要 3 分钟。

How to download a file with plus symbol(+) filename in IIS?

Original post link:

Today I get a ticket with our client that they could not download a file with plus symbol(+) filename, such as the filename is a+b.xls.

I have a try and get the 404 code as below.
iis_file_404

Firstly, I consider if the file is deleted on the server by someone, so I remote to the server and have a check. But...all going well. The file is here.

Then I search if someone has had this problem on the Internet. A lot of answers say that + is a specific symbol in browser. It should be transcoded into %2B.
So I add the js code as below and try again.

fileName=fileName.replaceAll("\\+","%2B");window.location.href = conf.webAPIRoot + fileName;

But...it doesn't work for me.

In another answer found in . It should be set in IIS. After the setting, I try again and it works for me.

Request Filtering -> Edit Feature Settings -> Allow Double Escaping

iis_file_featureview

iis_file_requestfiltering

转载于:https://www.cnblogs.com/markjiang7m2/p/10823844.html

你可能感兴趣的文章
ORA-00600: 内部错误代码, 参数: [kqlnrc_1]
查看>>
Android Studio常用小技巧
查看>>
和为S的两个数字
查看>>
NPOI导出模板样式
查看>>
jsp请求由servlet响应的方式
查看>>
16 款最流行的 JavaScript 框架
查看>>
使用awrextr.sql导出awr原始数据
查看>>
分享一次失败的项目实践经验
查看>>
jedispool 连 redis
查看>>
PadLeft 补零
查看>>
注意了,99%通过天天特价的技巧!
查看>>
iOS H5容器的一些探究(一):UIWebView和WKWebView的比较和选择
查看>>
activity启动模式
查看>>
如何将页面设置为微信端才能打开
查看>>
centos7如何关闭防火墙
查看>>
iOS开发中你是否遇到这些经验问题
查看>>
cellery ImportError & AttributeError
查看>>
正则表达式
查看>>
算法实验题 5.1 湖泊
查看>>
【235】Win10-Chrome 临时视频文件夹
查看>>