-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
enhancementNew feature or requestNew feature or request
Description
当前下载文件URL:http://localhost/dir/file.txt?download
使用以上URL下载文件时,默认文件名是 file.txt,因为服务端content-disposition = attachment; filename=file.txt; filename*=UTF-8''file.txt
如何通过修改URL链接参数的方式,修改服务端content-disposition中的filename值呢?
比如加入参数filename:http://localhost/dir/file.txt?download&filename=new_file_name.txt
让服务端content-disposition 值变成 attachment; filename=new_file_name.txt; filename*=UTF-8''new_file_name.txt
同理下载压缩包 http://localhost/tmp?zip&filename=new_file_name.zip
让服务端content-disposition 值变成 attachment; filename=new_file_name.zip; filename*=UTF-8''new_file_name.zip
可以实现么?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request