amis icon indicating copy to clipboard operation
amis copied to clipboard

文件名带空格时文件下载命名不正确

Open Miao0er opened this issue 3 years ago • 2 comments

描述问题:

文件下载接口,响应头返回

Content-Disposition: attachment;filename=1+-+%E5%89%AF%E6%9C%AC+%2811%29.doc Content-Type: application/msword;charset=UTF-8

理论上下载的文件的名字应该是:“1-中国(11).doc” 但实际上下载结果为:“1+-+中国(11).doc”

这个空格没有被转出来,是为什么?

Miao0er avatar Oct 24 '23 13:10 Miao0er

👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

github-actions[bot] avatar Oct 24 '23 13:10 github-actions[bot]

空格编码后应该是 %20 而不是 +

nwind avatar Nov 22 '23 04:11 nwind