通过浏览器访问 coldfusion 临时文件
Accessing coldfusion temp files through browser
如果我使用coldfusion's getTempDirectory()作为生成文件的路径,浏览器有没有办法访问它?或者,如果没有,我可以将临时路径配置为某个文件夹吗?
您可以使用 cfcontent 标签提供内容。它读取文件并将内容发送到浏览器。
<cfcontent
type = "text/html"
file = "#getTempDirectory()#\myfile.htm"
deleteFile = "No">
如果我使用coldfusion's getTempDirectory()作为生成文件的路径,浏览器有没有办法访问它?或者,如果没有,我可以将临时路径配置为某个文件夹吗?
您可以使用 cfcontent 标签提供内容。它读取文件并将内容发送到浏览器。
<cfcontent
type = "text/html"
file = "#getTempDirectory()#\myfile.htm"
deleteFile = "No">