• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Can't Copy A File

New Here ,
Jun 11, 2018 Jun 11, 2018

Copy link to clipboard

Copied

Here is my code:

   <cffile
  action="copy"
  source="http://webber/intranet/docs/projplan/ProposalDNCCalculator.xlsm"
  destination="http://webber/documents/P/P-#newproposalnumber#/">

Here is the error I am getting:

An error occurred when performing a file operation exists on file /documents/P/P-12143/ProposalDNCCalculator.xlsm.

The cause of this exception was: org.apache.commons.vfs.FileSystemException: Could not determine the type of file "http://webber/documents/P/P-12143/ProposalDNCCalculator.xlsm"..

Any ideas? Thanks.

Views

440

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 11, 2018 Jun 11, 2018

Copy link to clipboard

Copied

LATEST

I'm not sure but I believe that the destination can only be a local path.  If the value of destination does not begin with a drive letter ("D:") or double-slash ("//") then it is saved relative to the CF temp folder.

If you want to copy a file from a different web server to yours, then I believe you want CFFTP.

V/r,

^ _ ^

UPDATE:  OR, possibly get the file using CFHTTP and turn it into a file object, then save it using CFFILE using a full path (ie, D:\webroot\site\files).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation