Skip to main content
Participant
November 18, 2008
Frage

CFFile Upload to www. destination

  • November 18, 2008
  • 2 Antworten
  • 364 Ansichten
Anyone have a workaround for the CFFile Upload tag to a destination not on the original server.

My ISP runs our sites on Cold Fusion and we are wanting to create an image server in house to hold all our web graphics. We want to use cold fusion to upload the images from the website to the image server ( www.website.com/images as an example ).

Is this possible or is there an available workaround?

Thanks in advance for any assistance available.
Dieses Thema wurde für Antworten geschlossen.

2 Antworten

vksrinu
Inspiring
November 19, 2008
How about using cfftp once the file is loaded into the same server.
Inspiring
November 18, 2008
OFAH Webmaster wrote:
> Anyone have a workaround for the CFFile Upload tag to a destination not on the
> original server.

<cffile...> can read or write to any file visible to the domain user
that ColdFusion runs under. The default user ColdFusion runs under on a
windows server is 'localsystem' which, usually by default, has no
permissions to any server other then itself.

If you change the user ColdFusion runs under or goodness forbid - please
don't do this - change the 'localsystem' account to one that has
permissions to other servers on a network domain. Then ColdFusion would
be able to access those servers with <cffile...>.

But all of that is probably moot as I highly doubt you and your ISP
share a network domain and that you can not access your web site server
with a network UNC path!

So the question would be what protocols do you use to move files from
your systems to your internet service provider's systems? Most likely
you use either the FTP or HTTP protocol. If you where to add a 'CF' in
front of either of these protocol names you would come up with a couple
of very useful CFML tags for accessing remote servers with ColdFusion.

The documentation and the internet have the full details on these two tags.