我在做什麼錯?將文件上傳到對象
fileUpload.cfm
<cfcomponent name="fileAttachment" hint="This is the File Attachment Object">
<cffunction name="uploadFile" access="public" output="no" returntype="string">
<cfargument name="fileToUpload" type="string" required="no">
<cfargument name="pDsn" required="no" type="string">
<cfset var cffile = "">
<cffile action="upload" destination="D:\apache\htdocs\abc\uploads" filefield="#ARGUMENTS.fileToUpload#" nameconflict="makeunique">
<cfreturn cffile.clientFile />
</cffunction>
</cfcomponent>
test_fileUpload.cfm
<form action="fileUpload.cfm" enctype="multipart/form-data" method="post">
<input type="file" name="fileToUpload"><br/>
<input type="submit">
</form>