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

CFFile Upload to Remote Server

Engaged ,
Mar 16, 2011 Mar 16, 2011

I know this is a routing question, but I can't figure out what's going on.

Since I can't get links from a remote server to work (see: ) I've decided to just upload files to both production servers.

I am using the code: <cffile action="upload" filefield="new_file" destination="\\earth.domain_name.com\Inetpub\wwwroot\portal\prod\manu\ford\eg\pdc\training">

I have also used the following variations:

<cffile action="upload" filefield="new_file"  destination="\\earth\Inetpub\wwwroot\portal\prod\manu\ford\eg\pdc\training">

<cffile action="upload" filefield="new_file"  destination="\\ipaddress\Inetpub\wwwroot\portal\prod\manu\ford\eg\pdc\training">

<cffile action="upload" filefield="new_file"  destination="\\earth\portal\prod\manu\ford\eg\pdc\training">

<cffile action="upload" filefield="new_file"  destination="\\earth.domain-name.com\portal\prod\manu\ford\eg\pdc\training">

<cffile action="upload" filefield="new_file"  destination="\\ipaddress\portal\prod\manu\ford\eg\pdc\training">

<cffile action="upload" filefield="new_file"  destination="\\earth\Inetpub\wwwroot\portal\prod\manu\ford\eg\pdc\training">

When I use a / at the end I get an attribute validation error, when I don't use one I get the message "The destination either does not exist or is not accessible by this tag."  I copied the inital path directly from the file explorer window that I used on the development server to browse to the foler I wanted.  Even when I replace Earth with the UNC for the development server (same file path) that I can easily write to using a absolute file path, I get that error.  I know these paths are correct and the files exist.

Also, CF is using the Administrator account which has full access to the training folder on the production and development servers.


Does anyone know why I cannot write to or see these folders when uploading files like this?


Thank you.

2.3K
Translate
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 ,
Mar 16, 2011 Mar 16, 2011

filefield should be filefield="FORM.[name of form field]"

destination should be the full physical path (drive) of destination (ie, "D:\earth\Inetpub\wwwroot\portal\prod\manu\ford\eg\pdc\training")

^_^

Translate
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
Engaged ,
Mar 16, 2011 Mar 16, 2011

I shouldn't have to map the remote servers, but I'll give it a try.

Translate
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 ,
Mar 16, 2011 Mar 16, 2011

Och.. forgot about the remote part..

In that case, you use CFFILE to upload to a local server, then CFFTP to move it to the remote server.

^_^

Translate
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
Engaged ,
Mar 18, 2011 Mar 18, 2011
LATEST

Thank you for that suggestion!  It horrifyed my sysadmin so much he took an *actual* hard, second look at the server settings and saw that deep down somewhere in the advanced IIS settings something wasn't right or didn't match, so now I can do the original thing I wanted to do (upload to and pull from a remote server).  For some reason I now get a DLL error when I try to do this with the development server, but I guess I'll just make do.

Thank you so much

Translate
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