I love using Expand Path. Especially with shared hosting. I used to
introduce errors into code on purpose the get the path until I
discovered this nice tag.
Ben Doom wrote:
> You could use something like #expandpath('..')#/tempUploads to do that.
> expandpath() can be *very* useful sometimes.
That should read expandpath(). Sorry for the faux pax (sp?).
~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf
expandPath()?
http://livedocs.adobe.com/coldfusion/7/htmldocs/0460.htm
On Nov 16, 2007 10:06 AM, Richard White <[EMAIL PROTECTED]> wrote:
> hi,
>
> i am creating an upload facility using the cffile tag.
>
> from all i have read it seems that the destination attribute needs to have
> the full
Perfect thanks very much :)
~|
Enterprise web applications, build robust, secure
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps
Archive:
http://www.houseoffusion.com/groups/CF-
You could use something like #expandpath('..')#/tempUploads to do that.
expandpath() can be *very* useful sometimes. :-)
--Ben Doom
Richard White wrote:
> hi,
>
> i am creating an upload facility using the cffile tag.
>
> from all i have read it seems that the destination attribute needs to
ExpandPath("../tempUploads") is what you're looking for.
-- Josh
- Original Message -
From: "Richard White" <[EMAIL PROTECTED]>
To: "CF-Talk"
Sent: Friday, November 16, 2007 10:06 AM
Subject: cffile destination
> hi,
>
> i am creating an upload facility using the cffile tag.
>
> from
look up ExpandPath()
On Nov 16, 2007 12:06 PM, Richard White <[EMAIL PROTECTED]> wrote:
> hi,
>
> i am creating an upload facility using the cffile tag.
>
> from all i have read it seems that the destination attribute needs to have
> the full address to where the file will be saved to. however i
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.
>
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 again
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
t
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 :
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 ca
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
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 d
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\RefP
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 ri
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 Comput
17 matches
Mail list logo