Answered
presuhn1111Correct answer
Inspiring
May 1, 2025 12:12 PM UTC
Hi @presuhn1111 ,
Here is a suggestion for a test. It is to check whether file-access-permissions are indeed the cause of the issue.
- Store a test file, test.pdf, within the current directory.
- Run the following code in a CFM file.
- Verify whether the file is copied.
<cftry> <cfset source = expandPath('.') & '\' & 'test.pdf'> <cfset destination = "\\srv-cfdev\stcnet1\branchcontrol\files\testCopy.pdf"> <cfset filecopy(source, destination)> Does destination file exist? Answer: <cfoutput>#fileExists(destination)#</cfoutput> <cfcatch type="any"> <cfdump var="#cfcatch#"> </cfcatch> </cftry>
Thank you everyone for your help. It ended up being a folder sharing permission issue. I'm not the 'server guy' so he had to tinker with it to get it working.
