troubleshooting Question

cffile destination permission error

Avatar of lantervj
lantervjFlag for United States of America asked on
ColdFusion Language
22 Comments1 Solution678 ViewsLast Modified:
It appears that cffile does not have permission to write/upload a file to the server.

The following code works when I upload a file from my PC;
<cffile action="upload" destination="#request.ControlPath#documents\original\" mode="777" nameconflict="makeunique" filefield="docFile" accept="application/pdf,application/msword,application/,text/plain,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/,application/">

The following does not work when I upload a file I scanned using Dynamic Web Twain;
            <cfset dest = "#request.ControlPath#documents\original\">
            <cffile action="upload" filefield="RemoteFile"  mode="777" destination="#dest#" nameconflict="OVERWRITE" />

But it does work with dest="c:\"
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 22 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 22 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros