Cffile Destination on Other server in Redhat Server
How can i set my destination in cffile for destination located at different server? (Red Hat Enterprise Server)
<cfset rootdirectoryUpload_w = "192.168.128.210/db/UploadFolder/projectx/">
<cfset rootdirectoryUpload_v = "192.168.128.210/db/UploadFolder/projectx/">
<cfif directoryexists(rootdirectoryUpload_w)>
<cfelse>
<!--- Create this folder --->
<cfdirectory action = "create"
directory = "#rootdirectoryUpload_w#">
</cfif>
<cffile destination="#rootdirectoryUpload_w#" action="UPLOAD" nameconflict="MAKEUNIQUE" filefield="aimage"
accept="image/gif, image/jpeg, image/jpg, image/pjpeg, image/bmp">
-------------HTML-----------
<cfif fileexists(uploadimage_name)>
<a href="javascript:newWindow=window.open('#rootdirectoryUpload_v#/#urlencodedformat(qDetail.MVARIANTIMG)#', 'openWn', 'toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1'); newWindow.focus();">#qDetail.MVARIANTIMG#</a><br>
<font color="c0c0c0">* Click the file name to view</font>
<cfelse>
File Not Available
</cfif>
-------------HTML-----------
From the code above, i can successfully upload, but the uploaded file i can't find it, don't know where it gone.
From the HTML part, i try to view back the file but it can't point me to the file that i uploaded.
ANyone can help?