How to encode the filename parameter of Content-Disposition header in HTTP?

前端 未结 18 1758
北荒
北荒 2020-11-21 06:15

Web applications that want to force a resource to be downloaded rather than directly rendered in a Web browser issue a Content-Disposition hea

18条回答
  •  盖世英雄少女心
    2020-11-21 07:18

    I normally URL-encode (with %xx) the filenames, and it seems to work in all browsers. You might want to do some tests anyway.

提交回复
热议问题