RE: CFFILE DESTINATION question
You would need to know the "physical" location of the virtual web server your site is located at. They would need to advise you of this. Consider also that many CF hosts disable the use CFFILE in the administrator for security reasons. Peter Tilbrook Internet Applications Developer Aspect Computing Pty. Ltd. 19-25 Moore Street Turner, ACT, 2612 AUSTRALIA http://www.aspect.com.au Phone: (02) 6247 7677 Fax: (02) 6249 1620 Mobile: 0428 765 020 ACT ColdFusion Users Group - http://203.37.24.198 -Original Message- From: LH Rothman [mailto:[EMAIL PROTECTED]] Sent: Monday, 4 September 2000 12:56 To: CF Talk Subject: CFFILE DESTINATION question I want to upload an image to a remote location. For example, a .JPG to my website which is hosted offsite. How would I phrase the destination Thank you! -L -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
re: CFFILE destination error
did you give the destination folder "write" privileges? ~Dave the disruptor~ From: Daniel Kang <[EMAIL PROTECTED]> Sent: Thursday, May 05, 2005 10:07 PM To: CF-Talk Subject: CFFILE destination error \\swintranet1\d$\Inetpub\wwwroot\RefPosting is the right destination, but I am getting this error. What am I missing? The destination "\\swintranet1\d$\Inetpub\wwwroot\RefPosting" specified in the CFFILE tag is invalid. The destination either does not exist or is not accessible by this tag. The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line 17 15 : Destination = "\\swintranet1\d$\Inetpub\wwwroot\RefPosting" 16 : action = "upload" 17 : nameconflict ="overwrite" 18 : filefield = "fileName"> tia ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205807 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFFILE destination error
Daniel, I don't think CFFILE supports UNC paths... permissions notwithstanding. I think it expects a drive/directory on Windows. I'll test a lil more, but I'm thinking it's not going to work. Laterz, J On 5/5/05, Daniel Kang <[EMAIL PROTECTED]> wrote: > > \\swintranet1\d$\Inetpub\wwwroot\RefPosting is the right destination, > but I am getting this error. > > What am I missing? > > The destination "\\swintranet1\d$\Inetpub\wwwroot\RefPosting" > specified in the CFFILE tag is invalid. > > The destination either does not exist or is not accessible by this tag. > > The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line > 17 > > 15 : Destination = > "\\swintranet1\d$\Inetpub\wwwroot\RefPosting" > 16 : action = "upload" > 17 : nameconflict ="overwrite" > 18 : filefield = "fileName"> > > tia > -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205813 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFFILE destination error
I can UNC directly from the Run... command to the text file in question, but CFFILE can't find it. The only thing I can think of to test this is using a privileged account (like a Domain Admin) that might give you higher privs to access remote files... but that's Really Not a Good Idea. Sorry dude... J On 5/5/05, Daniel Kang <[EMAIL PROTECTED]> wrote: > > \\swintranet1\d$\Inetpub\wwwroot\RefPosting is the right destination, > but I am getting this error. > > What am I missing? > > The destination "\\swintranet1\d$\Inetpub\wwwroot\RefPosting" > specified in the CFFILE tag is invalid. > > The destination either does not exist or is not accessible by this tag. > > The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line > 17 > > 15 : Destination = > "\\swintranet1\d$\Inetpub\wwwroot\RefPosting" > 16 : action = "upload" > 17 : nameconflict ="overwrite" > 18 : filefield = "fileName"> > > tia > -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205814 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFFILE destination error
OK, one last followup... I just tested it using UNC to hit a file located on the same machine I've got CF Dev edition running on... and it worked. This is MX 7. So we at least know that MX 7 can do it if it has the right privs. So I'm guessing what you're experiencing is privs... what you could do is create a user account for CFMX on the server and have it run under that account intstead of.. oh... duh... Local Service isn't going to have foreign privs anyway. Sorry... you'll definitely have to create a domain account for CFMX to run under, then give that account privileges to access the file you want. Let me know if you need more help. Laterz, J On 5/5/05, Daniel Kang <[EMAIL PROTECTED]> wrote: > > \\swintranet1\d$\Inetpub\wwwroot\RefPosting is the right destination, > but I am getting this error. > > What am I missing? > > The destination "\\swintranet1\d$\Inetpub\wwwroot\RefPosting" > specified in the CFFILE tag is invalid. > > The destination either does not exist or is not accessible by this tag. > > The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line > 17 > > 15 : Destination = > "\\swintranet1\d$\Inetpub\wwwroot\RefPosting" > 16 : action = "upload" > 17 : nameconflict ="overwrite" > 18 : filefield = "fileName"> > > tia > -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205815 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFFILE destination error
What about adding it as a mapped network drive to the server and accessing it via e:\ or something similar? On 5/5/05, Jared Rypka-Hauer - CMG, LLC <[EMAIL PROTECTED]> wrote: > I can UNC directly from the Run... command to the text file in question, but > CFFILE can't find it. The only thing I can think of to test this is using a > privileged account (like a Domain Admin) that might give you higher privs to > access remote files... but that's Really Not a Good Idea. > > Sorry dude... > > J > > On 5/5/05, Daniel Kang <[EMAIL PROTECTED]> wrote: > > > > \\swintranet1\d$\Inetpub\wwwroot\RefPosting is the right destination, > > but I am getting this error. > > > > What am I missing? > > > > The destination "\\swintranet1\d$\Inetpub\wwwroot\RefPosting" > > specified in the CFFILE tag is invalid. > > > > The destination either does not exist or is not accessible by this tag. > > > > The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line > > 17 > > > > 15 : Destination = > > "\\swintranet1\d$\Inetpub\wwwroot\RefPosting" > > 16 : action = "upload" > > 17 : nameconflict ="overwrite" > > 18 : filefield = "fileName"> > > > > tia > > > > -- > --- > - > Buy SQLSurveyor! > http://www.web-relevant.com/sqlsurveyor > Never make your developers open Enterprise Manager again. > > ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205816 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFFILE destination error
OK, I created a folder (\\swintranet1\D:\IntranetData) with full privs for SYSTEM, Users, etc. If I upload Word, String index out of range: -5 The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line 18 16 :Destination = "\\swintranet1\D:\IntranetData" 17 :action = "upload" 18 :nameconflict ="overwrite" 19 :filefield = "fileName"> If I upload Excel, String index out of range: -1 The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line 18 16 :Destination = "\\swintranet1\D:\IntranetData" 17 :action = "upload" 18 :nameconflict ="overwrite" 19 :filefield = "fileName"> If I upload Access, The destination "\\swintranet1\D:\IntranetData" specified in the CFFILE tag is invalid. The destination either does not exist or is not accessible by this tag. The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line 18 16 :Destination = "\\swintranet1\D:\IntranetData" 17 :action = "upload" 18 :nameconflict ="overwrite" 19 :filefield = "fileName"> Why is that? tia On 5/5/05, Jared Rypka-Hauer - CMG, LLC <[EMAIL PROTECTED]> wrote: > OK, one last followup... > > I just tested it using UNC to hit a file located on the same machine I've > got CF Dev edition running on... and it worked. This is MX 7. So we at least > know that MX 7 can do it if it has the right privs. > > So I'm guessing what you're experiencing is privs... what you could do is > create a user account for CFMX on the server and have it run under that > account intstead of.. oh... duh... Local Service isn't going to have foreign > privs anyway. Sorry... you'll definitely have to create a domain account for > CFMX to run under, then give that account privileges to access the file you > want. > > Let me know if you need more help. > > Laterz, > J > > On 5/5/05, Daniel Kang <[EMAIL PROTECTED]> wrote: > > > > \\swintranet1\d$\Inetpub\wwwroot\RefPosting is the right destination, > > but I am getting this error. > > > > What am I missing? > > > > The destination "\\swintranet1\d$\Inetpub\wwwroot\RefPosting" > > specified in the CFFILE tag is invalid. > > > > The destination either does not exist or is not accessible by this tag. > > > > The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line > > 17 > > > > 15 : Destination = > > "\\swintranet1\d$\Inetpub\wwwroot\RefPosting" > > 16 : action = "upload" > > 17 : nameconflict ="overwrite" > > 18 : filefield = "fileName"> > > > > tia > > > > -- > --- > - > Buy SQLSurveyor! > http://www.web-relevant.com/sqlsurveyor > Never make your developers open Enterprise Manager again. > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205818 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFFILE destination error
If you're still running CFMX under the System account (assuming CFMX on Win), then it won't have access to foreign folders at all. \D:\ or \D$\? You need to test this against \\localhost\{drive}$\folder or change the account under which CFMX runs (available via properties for that service in the Services control panel) to access share points on remote boxes. J On 5/5/05, Daniel Kang <[EMAIL PROTECTED]> wrote: > > OK, I created a folder (\\swintranet1\D:\IntranetData) with full privs > for SYSTEM, Users, etc. > > If I upload Word, > > String index out of range: -5 > > The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line > 18 > > 16 : Destination = "\\swintranet1\D:\IntranetData" > 17 : action = "upload" > 18 : nameconflict ="overwrite" > 19 : filefield = "fileName"> > > If I upload Excel, > > String index out of range: -1 > > The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line > 18 > > 16 : Destination = "\\swintranet1\D:\IntranetData" > 17 : action = "upload" > 18 : nameconflict ="overwrite" > 19 : filefield = "fileName"> > > If I upload Access, > > The destination "\\swintranet1\D:\IntranetData" specified in the > CFFILE tag is invalid. > > The destination either does not exist or is not accessible by this tag. > > The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line > 18 > > 16 : Destination = "\\swintranet1\D:\IntranetData" > 17 : action = "upload" > 18 : nameconflict ="overwrite" > 19 : filefield = "fileName"> > > Why is that? > > tia > -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205821 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFFILE destination error
I got it. Thank you so much the tip. Daniel On 5/6/05, Jared Rypka-Hauer - CMG, LLC <[EMAIL PROTECTED]> wrote: > If you're still running CFMX under the System account (assuming CFMX on > Win), then it won't have access to foreign folders at all. > > \D:\ or \D$\? > > You need to test this against \\localhost\{drive}$\folder or change the > account under which CFMX runs (available via properties for that service in > the Services control panel) to access share points on remote boxes. > > J > > On 5/5/05, Daniel Kang <[EMAIL PROTECTED]> wrote: > > > > OK, I created a folder (\\swintranet1\D:\IntranetData) with full privs > > for SYSTEM, Users, etc. > > > > If I upload Word, > > > > String index out of range: -5 > > > > The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line > > 18 > > > > 16 : Destination = "\\swintranet1\D:\IntranetData" > > 17 : action = "upload" > > 18 : nameconflict ="overwrite" > > 19 : filefield = "fileName"> > > > > If I upload Excel, > > > > String index out of range: -1 > > > > The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line > > 18 > > > > 16 : Destination = "\\swintranet1\D:\IntranetData" > > 17 : action = "upload" > > 18 : nameconflict ="overwrite" > > 19 : filefield = "fileName"> > > > > If I upload Access, > > > > The destination "\\swintranet1\D:\IntranetData" specified in the > > CFFILE tag is invalid. > > > > The destination either does not exist or is not accessible by this tag. > > > > The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line > > 18 > > > > 16 : Destination = "\\swintranet1\D:\IntranetData" > > 17 : action = "upload" > > 18 : nameconflict ="overwrite" > > 19 : filefield = "fileName"> > > > > Why is that? > > > > tia > > > > -- > --- > - > Buy SQLSurveyor! > http://www.web-relevant.com/sqlsurveyor > Never make your developers open Enterprise Manager again. > > ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205856 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CFFILE destination error
I have used UNC paths. Have you tried a trailing "\" in your path? I remember that is/was required but not sure if in CFFILE paths. M!ke On 5/5/05, Daniel Kang <[EMAIL PROTECTED]> wrote: > > \\swintranet1\d$\Inetpub\wwwroot\RefPosting is the right destination, > but I am getting this error. > > What am I missing? > > The destination "\\swintranet1\d$\Inetpub\wwwroot\RefPosting" > specified in the CFFILE tag is invalid. > > The destination either does not exist or is not accessible by this tag. > > The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: > line > 17 > > 15 : Destination = > "\\swintranet1\d$\Inetpub\wwwroot\RefPosting" > 16 : action = "upload" > 17 : nameconflict ="overwrite" > 18 : filefield = "fileName"> > > tia > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205857 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54