Need Help on cffile upload, destination to another server
Anyone know why get this error? The specified directory attribute value Z:\Project_X\UploadFile\DlrPayInq\ could not be created.
The setup of my server is as below : -
I'm trying to use cffile to upload a file where by the destination i declare is located at another server which is my file server.
i had create a mapping from my application server to the file server as Z:.
<cfset dlrPayInq_w = "Z:\Project_X\UploadFile\DlrPayInq\">
<cfif trim(fileName) NEQ "">
<cfif directoryexists(dlrPayInq_w)>
<cfelse>
<!--- Create this folder --->
<cfdirectory action = "create"
directory = "#dlrPayInq_w#">
</cfif>
<cffile action="UPLOAD" filefield="fileName" destination="#dlrPayInq_w#" nameconflict="overwrite">
I had grant the folder permision to User type USER with Full Control, i can login as a normal window user and create files at Z:\Project_X\UploadFile\DlrPayInq\ manually.
But when i try to upload file using cffile in my program, i hit this error The specified directory attribute value Z:\Project_X\UploadFile\DlrPayInq\ could not be created. Actually the folder DlrPayInq is already exist in that fileserver, how come CF trying to create again?
I try to remove this code
<cfif trim(fileName) NEQ "">
<cfif directoryexists(dlrPayInq_w)>
<cfelse>
<!--- Create this folder --->
<cfdirectory action = "create"
directory = "#dlrPayInq_w#">
</cfif>
and i get another error, CFFILE atttribute error.
Any expert can help? Thanks for advanced.
