开发者

Liferay: PDF saving filename

开发者 https://www.devze.com 2023-01-13 10:47 出处:网络
I can serve PDF files no problem with Liferay but when I try to save them they just get the filename from the url like such:

I can serve PDF files no problem with Liferay but when I try to save them they just get the filename from the url like such:

http://localhost:8080/c/document_library/get_file?uuid=7a75925d-77f6-4d8a

In this case when hitting the Save button in the Acrobat reader plugin the suggested filename will be get_file. Any idea on how to preserv开发者_JAVA技巧e the original file name?

Thanks


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

0

精彩评论

暂无评论...
验证码 换一张
取 消