Answered
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.
Sign up
Already have an account? Login
To post, reply, or follow discussions, please sign in with your Adobe ID.
Sign inSign in to Adobe Community
To post, reply, or follow discussions, please sign in with your Adobe ID.
Sign inEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
