2 Replies Latest reply on Nov 19, 2008 3:09 AM by Srinivas VK

    CFFile Upload to www. destination

    Caltek79
      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.
        • 1. Re: CFFile Upload to www. destination
          Level 7
          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.
          • 2. Re: CFFile Upload to www. destination
            Srinivas VK
            How about using cfftp once the file is loaded into the same server.