Skip to main content
January 26, 2011
Answered

Problems with cffile

  • January 26, 2011
  • 2 replies
  • 513 views

I am probably overlooking something simple, but I have been staring at this for so long I can't see it. Maybe some fresh eyes may spot the problem.

I have a simple cffile:

<cffile action="UPLOAD"
        destination="\\wincfdev01\wwwroot\memo\pdfs"
        nameconflict="OVERWRITE"
        filefield="file1">

I run the page and it runs without error. But when I look in the folder that the file is supposed to be dropped in, it is not there. Is there something that I am missing?

Using coldfusion 9.

    This topic has been closed for replies.
    Correct answer

    It is possible to upload file

    to a different server using unc name in destination.Please check whether the permissions are set for the folder to which you are trying to copy the file.

    2 replies

    Correct answer
    January 27, 2011

    It is possible to upload file

    to a different server using unc name in destination.Please check whether the permissions are set for the folder to which you are trying to copy the file.

    Community Expert
    January 27, 2011

    The only obvious thing in your code snippet is that you're pointing to a UNC share path rather than a local path. Does CF have rights to that share? By default, CF doesn't have rights to remote shares.

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

    Dave Watts, Eidolon LLC