Railo cfdocument saveAsName 无效
我在 Railo 上创建了一个报告应用程序。最后一步是允许用户下载他们的报告。为此,他们单击一个链接,将其带到 /download.cfm?report=reportid
下载页面只是
<cfdocument format="pdf" saveAsName="Report.pdf">
<!-- html for report here -->
</cfdocument>
这应该理想地显示默认文件名中带有“Report.pdf”的保存文件对话框。但是,它仍然显示“download.cfm”
知道我忽略了什么/如何使保存文件对话框显示“Report.pdf”吗?
I've created a reporting application on Railo. The last step of this is to allow the users to download their reports. For this, they click on a link which takes them to /download.cfm?report=reportid
The download page is just
<cfdocument format="pdf" saveAsName="Report.pdf">
<!-- html for report here -->
</cfdocument>
This should be ideally showing a save file dialog with "Report.pdf" in the default file name. However, it still shows "download.cfm"
Any idea what I am overlooking / how to make the save file dialog show "Report.pdf"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试手动设置内容处置标头:
Try manually setting the content disposition header: