我似乎在从我的 CFC 中处理照片时遇到问题。我收到一条错误消息,提示它在尝试读取图像时遇到异常。所以这个问题很简单,从 CFC 中而不是 CFM 中操作文件有什么问题吗?
<cffunction name="imageResize" access="public" returntype="boolean">
<cfargument name="filename">
<cfset result = "true">
<cfimage
action = "resize"
source = "#root#/documents/uploads/PHOTOS/#filename#"
width = "400px"
height = ""
destination = "#root#/documents/uploads/PHOTOS/thumbs/#filename#"
overwrite = "yes"></cfimage>
<cfreturn result>
</cffunction>
谢谢