Copy link to clipboard
Copied
Hello people, I working with cfdirectory to verify the contents of a local directory (this is for an intranet running on a mac). It works ok when I trest it in the local environment but it fails when I run the script from the remote server.
I'm a bit lost here. Is something I need to modify at the local server or the remote server? Is the local server not allowing access to the remote script or the remote server doesn't want to access a local machine due to security issues?
Thsnkd in advance.
Dani
Copy link to clipboard
Copied
The default configuration, at least on windows servers, is to allow access to only the local system on which ColdFusion is running.
In that scenario, one has to modify the user the ColdFusion runs as and give the user the desired permissions to these remote resources.
Copy link to clipboard
Copied
Ian, thanks for your answer. This brings a problem...unless I can bypass it by calling a script on my local server, at least to perform cfdirectory operations...
I'm trying to do the following:
When a supplier approves a job, my client changes the status of that job to approved. When that happens, the application should be able to;
1) List the files related to that job (cfdirectory)
2) Zip those files (cfzip)
3) Upload those files to the ftp (cfftp)
But since the files are stored locally (huge graphic files), I'm stuck with the "access denied" situation.
Anyway, thanks so much Ian for clarifying this to me.
Dani Szwarc
Copy link to clipboard
Copied
I think I'll do it differently:
1) Using either CF o a jQuery plugin, I select the files I want to zip.
2) I zip them
3) I upload them.
![]()
It's an extra step but it solves the problem with the directory and security.
Again Ian, thanks for adding your comment to my question.
Dani Szwarc
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more