Issue solved. (Or perhaps a CF8 bug)
On:
cfset PAGE_clean_SERVERFILE = replace(cffile.SERVERFILE, ,_,all)
cffile action=RENAME source=#cffile.SERVERFILE#
destination=#PAGE_clean_SERVERFILE#
Apparently on CF8, if the cffile.serverfile name and the newly assigned name
var are the same, the file
@ Paul, Rick, and Brad: Thanks a bunch for your comments, ideas,
suggestions.
The reason why I had the cflock was because directly after the cffile
rename, was a cfexecute for ffmpeg. Without the lock, it seemed that ffmpeg
begins to execute even before the actual file rename on the file system
cffile and
ffmpeg, and how both can co-exists but don't really sync well together.
Circling back to the original cffile renaming-disappearing issue, at least
that is resolved.
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 18, 2007 3:19 PM
The lock just seemed to prevent that from happening.
If it did, it cannot be for any logical reason.
The purpose of named locks is to ensure that a program cannot lock under
the name,
if another lock with the same name is already active.
Using CreateUUID() to create a unique name, you just make
ColdFusion gets the file to move where
specified by the cffile call.
~|
ColdFusion is delivering applications solutions at at top companies
around the world in government. Find out how and where now
http://www.adobe.com/cfusion
Right Ian. I understand that part.
But consider this:
1) User uploads myFile.txt
2) CF puts it into c:\temporary\directory\neo12345.tmp
3) Form field value has c:\temporary\directory\neo12345.tmp
4) code calls cffile action=upload ... /
5) If I did not specify a new file name in the destination
My question, and this is more out of curiosity than anything, is how
does CF remember the original user's file name of myFile.txt
between steps 3 and 4 above. Looking through the various scopes
doesn't seem to reveal it. The form field, as you mentioned is a
random name in a temporary directory.
the programmer
decided, this is the purpose of the CFFILE upload.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks
Is it possible to get the name of the client's file before doing cffile?
I am testing for file size by doing a cfdirectory and filtering on the
neoX.tmp file name provided in the form field. If the file size is
too large, I would like to tell the user which file (this is a
multiple upload
You could use JS to put the file name in a hidden field before upload.
On 10/5/07, Matt Williams [EMAIL PROTECTED] wrote:
Is it possible to get the name of the client's file before doing cffile?
I am testing for file size by doing a cfdirectory and filtering on the
neoX.tmp file name
I'm pretty sure the answer is no, but just wanted to double-check.
Thanks,
Yup, the answer is no. Before CF has a chance to do anything, the browser has
read the file from the client's machine, bundled it into the response header,
sent the whole kit-n-caboodle to the web server, the web
before this, it is going to have to be done client
side.
I figured as much, but out of curiosity, where does CF get the file
name from? It would seem it has to be somewhere temporarily between
the .tmp file and the actual cffile call. Does it reside in the actual
file meta data or something?
Matt
, October 05, 2007 12:00 PM
To: CF-Talk
Subject: Name of uploaded file before cffile
Is it possible to get the name of the client's file before doing cffile?
I am testing for file size by doing a cfdirectory and filtering on the
neoX.tmp file name provided in the form field. If the file size
Yea I'm doing the hidden field thing. It's just one of those things I
guess. I'm still curious as to where CF gets the file name from after
doing the cffile call.
Thanks
Matt
On 10/5/07, Brad Wood [EMAIL PROTECTED] wrote:
The form post must complete before any ColdFusion runs. By that time
I am using CFFILE to upload a 2.5M file. When doing this, something is timing
out. I've been to the host site and my ISP. Neither are finding a problem.
What is interesting - if I FTP a 23M file using FileZilla I have no problem.
So why am I struggling with a 2.5M file using CFFILE
Its probably the timeout settings on the server. if it takes longer than the
default timeout ( 30 seconds ) to upload it will fail. You may want to use
cfsetting requestTimeOut=600 which is ten minutes
Regards
--
Gary Gilbert
http://www.garyrgilbert.com/blog
There can also be maximum HTTP file upload size settings in ColdFusion,
the webserver, firewall and|or proxy servers.
~|
ColdFusion is delivering applications solutions at at top companies
around the world in government.
- http://www.radinks.com/upload/
- http://swfupload.mammon.se/
OK - I like the swfupload best.
SWFupload still uses the HTTP method of uploading and if your web server or
CF server is limited then you have the same problems. You will still need
CFFile to accept the upload.
The default
For some odd reason there seems to be a problem using CFFILE with my host site
when trying to upload files larger than 1.5M. I know it has to do with memory
constraints - but I still find it strange that such a small file won't work.
sigh
So I'm looking for 2 things -
1) Does anyone know
I would guess that it's not a limitation of CF, but a setting in IIS or
Apache or whatever your webserver is.
--Ben Doom
Kim Hoopingarner wrote:
For some odd reason there seems to be a problem using CFFILE with my host
site when trying to upload files larger than 1.5M. I know it has to do
Kim Hoopingarner wrote:
For some odd reason there seems to be a problem using CFFILE with my host
site when trying to upload files larger than 1.5M.
1) Does anyone know a quick solution to the above problem? Right now files
smaller than 1.5 M go with no problem. Is there a setting some
be a limit imposed at the web server, or by some application firewall
in front of the web server. For example, I believe that the IIS ISAPI
URLScan filter can impose a limit on file uploads.
2) Is there another solution besides CFFILE that will give me
the same result.
CFFILE is the only
can make it simple for me. Anyone?I'm looking for an alternative to using
CFFILE. Thanks ahead for the ideas!
~|
Enterprise web applications, build robust, secure
scalable apps today - Try it now ColdFusion Today
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 26, 2007 5:08 PM
To: CF-Talk
Subject: Re: CFFILE - alternatives?
#1 Follow Up
Found out that the CFAdmin was set to 100 M for the max post. Drats.
So looks like I might be stuck with re-coding this...
#2 Yes - the host has other languages
Look into either of these:
- http://www.radinks.com/upload/
- http://swfupload.mammon.se/
OK - I like the swfupload best. But I struggle at how to incorporate this into
my existing cfm file. And help on putting it into a cfm form would be great.
This form needs to have a button to select
So, I admittedly haven't used cffile that much in the past-just here and
there. I was fiddling with something today and came to a startling
revelation (which I'm sure most of you already know):
You can't use the nameconflict attribute with action=copy. Well you
can-it's simply ignored. I
yourself. You can use a UUID-based file name, which is
ugly, but unique, or if you can't copy over foo.txt because it exists,
try foo1, foo2, fooN until it doesn't exist.
On 9/19/07, Brad Wood [EMAIL PROTECTED] wrote:
So, I admittedly haven't used cffile that much in the past-just here
Here is a neat ajax upload script that uses javascript to create the iframe
required for the upload:
http://www.ajax-tutorials.com/tutorial-list/resource/AJAX_file_upload/view.php
Andrew.
You're right, I'm just passing a string and not
actually submitting a form. But why can't I
assign
Standard Tag:
cffile action=upload
destination=/vservers/mySITE/htdocs/newsletters/
nameConflict=overwrite
fileField=nl_FILE
cfset fileNEWSLETTER =#cffile.serverfile#
1. Host says permissions on the folder are correct
2. Host says the address is correct
3. #cffile.serverfile
is returned by the
GetTempDirectory function.
Standard Tag:
cffile action=upload
destination=/vservers/mySITE/htdocs/newsletters/
nameConflict=overwrite
fileField=nl_FILE
cfset fileNEWSLETTER =#cffile.serverfile#
1. Host says permissions on the folder are correct
2. Host says
temporary directory, which is returned by
the GetTempDirectory function.
Standard Tag:
cffile action=upload
destination=/vservers/mySITE/htdocs/newsletters/
nameConflict=overwrite
fileField=nl_FILE
This is exactly the same way I've got it set and working up on another
couple
I'm having a problem trying to use AJAX (with the Prototype framework) with
the cffile tag to upload files to the server. The problem seems to be
related to the fact that the enctype attribute of the upload form must be
specified with the value of multipart/form-data. That specification requires
How does the Ajax.Request call know which form you want to post?
On 8/28/07, Aaron Roberson [EMAIL PROTECTED] wrote:
I'm having a problem trying to use AJAX (with the Prototype framework)
with
the cffile tag to upload files to the server. The problem seems to be
related to the fact
that
approach. You might also check to see if there are any Prototype or
Scriptaculous plugins that will do this for you.
On 8/28/07, Aaron Roberson [EMAIL PROTECTED] wrote:
I'm having a problem trying to use AJAX (with the Prototype framework)
with
the cffile tag to upload files to the server. The problem
Brian,
You're right, I'm just passing a string and not actually submitting a form.
But why can't I assign the value of the string being passed to a variable in
the form scope?
I also noted that much of the scripts out there for file upload with AJAX
use iFrames. I have not never used iFrames with
You're right, I'm just passing a string and not
actually submitting a form. But why can't I
assign the value of the string being passed to a
variable in the form scope?
For security reasons, there are lots of restrictions with file uploads. You
actually have to submit a form with a file
Aaron,
I'll suggest you to use this great javascript and Flash utility to upload
several files. Works like a charm for me integrated with CF backend. Very
impressive!
http://swfupload.mammon.se/
Cheers
p.s.: If you need that scripts(javascript files and CF) please call me. ;-)
2007/8/28,
Please go ahead and send me your example JavaScript and CF scripts. I will
check swfUpload out.
Thanks,
Aaron
On 8/28/07, Web Specialist [EMAIL PROTECTED] wrote:
Aaron,
I'll suggest you to use this great javascript and Flash utility to upload
several files. Works like a charm for me
WHy is CFFILE doing this? I'm getting an error that says it can't find the
file and I've checked several times, the file is there, on the server in the
correct folder with the exact file name!!!
The following information is meant for the website developer for debugging
purposes.
Error
PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 06 August 2007 15:08
To: CF-Talk
Subject: CFFILE Makes No Sense - the file is there
WHy is CFFILE doing this? I'm getting an error that says it can't find the
file and I've checked several times, the file is there, on the server in the
correct folder
Technology
E-mail: [EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 06, 2007 10:08 AM
To: CF-Talk
Subject: CFFILE Makes No Sense - the file is there
WHy is CFFILE doing this? I'm getting an error that says it can't
it.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 06, 2007 10:08 AM
To: CF-Talk
Subject: CFFILE Makes No Sense - the file is there
WHy is CFFILE doing this? I'm getting an error that says it can't find the
file and I've checked several times, the file
validation error for tag CFFILE.
The value of the attribute destination, which is currently /eStore/images/,
is invalid.
From the Application Log
Error,jrpp-47,07/30/07,14:47:34,eCM,Attribute validation error for
tag CFFILE.The value of the attribute
destination, which is currently /eStore
Is there any reason why cffile action=move doesn't support the nameconflict
attribute, like action=upload, or is this just a design oversight?
~|
ColdFusion is delivering applications solutions at at top companies
around
?
www.bennadel.com/ask-ben/
-Original Message-
From: Rebecca Younes [mailto:[EMAIL PROTECTED]
Sent: Monday, July 23, 2007 11:38 AM
To: CF-Talk
Subject: name conflicts with cffile action=move
Is there any reason why cffile action=move doesn't support the
nameconflict attribute, like action=upload
I eventually want to upload a file from my desktop, running CFMX 7.0.2
developer, to a remote pc. As a start, I'm trying cfdirectory to check the
connection, but getting absolutely nothing. Zero records returned, and no
error.
My directory attribute looks like: directory=//111.222.333.444/C$/
Subject: cffile to remote pc
I eventually want to upload a file from my desktop, running CFMX 7.0.2
developer, to a remote pc. As a start, I'm trying cfdirectory to check
the connection, but getting absolutely nothing. Zero records returned,
and no error.
My directory attribute looks like: directory
on +44 (0) 20 89107910. The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com
-Original Message-
From: James Buckingham
To: CF-Talk
Sent: Fri May 25 21:45:17 2007
Subject: CFFILE copy to another
Hi guys,
I'm trying to find a way that I can copy a file from one server to another
(there Windows 2003 servers) using either CFFILE or a CFEXECUTE command to run
what I need through Xcopy or Robocopy.
At the moment I'm getting a error message telling me The cause of this
exception
James,
You have got a Windows sharing problem there with you permissions. That
is not a problem with ColdFusion. There is a setting for cffile called
mode which can be set to 777 for Linux systems but this does not apply
for you. Check your shared drive in both machines.
Ravi.
James
There's all kinds of stuff available when you upload a file.
cffile.serverFileExt will hold the extension
Dump #cffile# for the rest
#listlast(filename, .)# will get you the extension too ;-)
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message
you put in place, somebody comes up with
*something* that mucks up the works and refuses to do it right
The last I saw in this category was somebody who absolutely wanted to
enter several values
in a text field using the Enter key in order to enter several lines...
Of course, this submit the
The last I saw in this category was somebody who absolutely wanted to
enter several values in a text field using the Enter key in order to enter
several lines...
Mine was a client with an admin for their image gallery. It was set up
for a main image and a thumb.
First round was my mistake.
On Thursday 24 May 2007, Les Mizzell wrote:
We just need to be able to export directly out of the camera.
How did the ratio ever get broken then ?
--
Tom Chiverton
Helping to enormously deliver cross-media design-patterns
on: http://thefalken.livejournal.com
If you resize an image to 100x150 it'll skew the ratio unless you crop it.
-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 24, 2007 10:02 AM
To: CF-Talk
Subject: Re: Renaming Files with CFFILE
On Thursday 24 May 2007, Les Mizzell wrote:
We just
On Thursday 24 May 2007, Andy Matthews wrote:
If you resize an image to 100x150 it'll skew the ratio unless you crop it.
Easy and obvious solutions include resizing to something slightly different
(102x147) but with the same aspect, or using CSS to do the cropping if the CF
solution can't.
pixels.
-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 24, 2007 10:21 AM
To: CF-Talk
Subject: Re: Renaming Files with CFFILE
On Thursday 24 May 2007, Andy Matthews wrote:
If you resize an image to 100x150 it'll skew the ratio unless you crop
* that mucks up the works and refuses to do it right and
your client says YEs, that's stupid, but figure out how to deal with
that!.
Now that I've got that off my chest...
I'm dealing with a CFFILE field. It accepts text, .doc, and .xls files.
I do *not* want to accept the original file names, because
You can use listlast() with . as the delimiter.
On 5/24/07, Les Mizzell [EMAIL PROTECTED] wrote:
OK, I want to rename this with the record ID that goes into the
database, so 397564.xls looks great to me instead of the above.
Got no problem with the record ID part - how do I extract the
that should be after days
On 4/9/07, Zaphod Beeblebrox [EMAIL PROTECTED] wrote:
~|
ColdFusion MX7 and Flex 2
Build sales marketing dashboard RIAâs for your business. Upgrade now
We are using SSL and Client Certificates on an IIS6 box and having trouble with
CFFILE upload. For some reason cffile upload no longer will work for a file
over 50k in size. We can turn off require client certificates in IIS and the
upload form works nicely. I even uploaded a 102mb avi file
through a secondary site.
On 4/9/07, Bobby Schuchert [EMAIL PROTECTED] wrote:
We are using SSL and Client Certificates on an IIS6 box and having trouble
with CFFILE upload. For some reason cffile upload no longer will work for a
file over 50k in size. We can turn off require client certificates
.
In the end, after day of trying to get it to work correctly, I
rerouted the uploads through a secondary site.
On 4/9/07, Bobby Schuchert [EMAIL PROTECTED] wrote:
We are using SSL and Client Certificates on an IIS6 box and having trouble
with CFFILE upload. For some reason cffile upload
Hi
I need to create a scheduled task at the server level, the task will run a
script that actually deletes all the contents of a folder. How i can do that?
I tried using cfdirectory but it deletes the whole directory. How I can just
delete the contents of a directory not the directory itself
Can anyone help me with this
Hi
I need to create a scheduled task at the server level, the task will
run a script that actually deletes all the contents of a folder. How i
can do that?
I tried using cfdirectory but it deletes the whole directory. How I
can just delete the contents of
cfdirectory returns a query object. loop over the results and use
cffile action=delete.
On 4/6/07, Deepak Gupta [EMAIL PROTECTED] wrote:
Hi
I need to create a scheduled task at the server level, the task will run a
script that actually deletes all the contents of a folder. How i can do
sorry, i should have specified that it returns a query object of the
files in the directory :)
On 4/6/07, Charlie Griefer [EMAIL PROTECTED] wrote:
cfdirectory returns a query object. loop over the results and use
cffile action=delete.
On 4/6/07, Deepak Gupta [EMAIL PROTECTED] wrote:
Hi
I am trying to do this
cfdirectory action=list name=Files
directory=#getDirectoryFromPath(GetBaseTemplatePath())#SoundFile
filter=*.zip
cfloop from=1 to=#Files.recordcount# index=i
cffile action=delete
file=#getDirectoryFromPath(GetBaseTemplatePath())#SoundFile\#Files[i]#
/cfloop
Wats
I think at the end of your cffile you'll need
#Files[i].filename#
although I'm not sure if that's the name of the column in the Files
query.
The best way to figure it out is to dump your query var Files and see what
it produces. This will give you insight into what's going on and what
(re-sending)
btw it would be much easier to loop over the query object -as- a query
(instead of an index loop).
cfloop query=Files
cffile action=delete file=#directory#\#name# /
/cfloop
On 4/6/07, Charlie Griefer [EMAIL PROTECTED] wrote:
you tell me :)
what's the issue. getting
Your specifying the form field value where you should be putting the form field
i.e.
filefield=fileuploadfiled
not
filefield=#FORM.fileuploadfiled#
~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7
Thanks Richard,
I figured that out late last night. I haven't had to write code for a
cffile in years so I forgot that and in the blur of upgrading to Vista and
IIS7 with a more manual install of ColdFusion, I of course, decided to blame
the configuration rather than my code!
Sandra Clark
Trying to upload a file through an HTML form. When I hit the cffile
action=upload, I get an error telling me that
The form field
C:\CFusionMX7\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp
1155.tmp did not contain a file.
I checked the directory and sure enough the file does
This might do the trick for you...
http://www.petefreitag.com/item/85.cfm
For what it's worth, I would strongly recommend *against* a previous
suggestion of using a loop that runs until the file is created; that could
be disastrous in the event that the file writing code has an error.
I would
Thanks all for replying, Matt, that's what I was looking for. I remember it
from WACK but couldn't get google to locate it for me.
I believe the timeout setting of cfexecute was working all along.
In the end this was a stupid mistake on my part. When the excel file only
had one worksheet it
I would have though by placing a timeout on cfexecute, the remainder of the
script would hold off before running it's stuff. Doesn't seem to be working.
I'm converting an excel document to html and this process works fine. As
soon as this has finished I need to read one of the files so I can grab
You could do a cffile check for the existence of the file (inside a
try/catch) in a loop with a limit to make sure the file is there
before doing the read.
I would have though by placing a timeout on cfexecute, the remainder of the
script would hold off before running it's stuff. Doesn't seem
Or this...
cfloop condition=not fileExists(absolute_path)/cfloop
Michael
At 11:01 AM 2/17/2007, you wrote:
You could do a cffile check for the existence of the file (inside a
try/catch) in a loop with a limit to make sure the file is there
before doing the read.
I would have though
I'd like to help anyone out who may be trying to set up a
coldfusion mailform app on GoDaddy.com
I've been fumbling around all morning trying to get the
cfmail to work on my client's GoDaddy w/ Coldfusion shared
hosting website.
Finally, after much trial and error, as well as checking
previous
Terry,
Thanks for the info. I happen to have an app that I am rolling out for a
personal client that will be using an email app for folks who opt-in and is
hosted at GoDaddy. Have not tested it yet but I am glad to have this tidbit
of information. And you are right about their tech support. I
Speaking of getting around GoDaddy restrictions. Does anyone have a work
around for the lack of CreateObject?
-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 12:01 PM
To: CF-Talk
Subject: Re: cffile on GoDaddy.com
Terry,
Thanks
CFOBJECT and CreateObject is not supported in their environment. This is per
Adobe's guidance on how to secure servers. (
http://www.adobe.com/devnet/security/security_zone/mpsb04-10.html). They
suggest using the CFINVOKE tag instead.
Bruce Sorge
I'm a mawg: half man, half dog. I'm my own best
So basically you can USE CFCs, you just can't store them into memory?
-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 12:12 PM
To: CF-Talk
Subject: Re: cffile on GoDaddy.com
CFOBJECT and CreateObject is not supported in their environment
Correct.
Bruce Sorge
I'm a mawg: half man, half dog. I'm my own best friend!
On 2/8/07, Andy Matthews [EMAIL PROTECTED] wrote:
So basically you can USE CFCs, you just can't store them into memory?
~|
Upgrade to Adobe
So basically you can USE CFCs, you just can't store them into memory?
If your CFC has a method which returns the CFC instance itself, you could
call that with CFINVOKE. It's pretty common to have such a method, for other
reasons.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig
.
Rick
On 2/8/07, Andy Matthews [EMAIL PROTECTED] wrote:
So basically you can USE CFCs, you just can't store them into memory?
-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 12:12 PM
To: CF-Talk
Subject: Re: cffile on GoDaddy.com
That stinks. I just bought a plan off godaddy, but for 60 bucks a year I guess
I can't complain too much.
-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 1:31 PM
To: CF-Talk
Subject: Re: cffile on GoDaddy.com
If you use cfinvoke
to the new directory ---
cffileaction = move
source = #tempBylawPath#\#Form.APPROVE#
destination = #currentBylawPath#
I dumped out the source and the destination and they show as valid paths,
and the source is a valid path and filename that exists. But I am getting an
error
But I am getting an error that says Attribute validation error in CFFILE. So
what gives? The server is a Windows 2K3 server running CFMX 7.2.
Is there a possibility of a permission error? The CF/Jrun service does not
have permission to read/write/copy in one or more of those directories? I
The two directories do not reside on different partitions do they?
There is a note in the Livedocs to the effect that the java library
involved has an issue with that.
Is there a possibility of a permission error? The CF/Jrun service does not
have permission to read/write/copy in one or more
They are on the same partition. This is a test server that has only one
partition and currently this is the only app residing on it. The file I am
trying to move was loaded up by another part of this app using CFFILE and
there are no issues with that.
Bruce Sorge
I'm a mawg: half man, half dog
: Bruce Sorge [mailto:[EMAIL PROTECTED]
Sent: Friday, January 19, 2007 3:57 PM
To: CF-Talk
Subject: Re: Stupid CFFILE
They are on the same partition. This is a test server that has only one
partition and currently this is the only app residing on it. The file I
am
trying to move was loaded up
OK, so I did this on my local machine now rather than the server, and I get
this message:
An exception occurred when performing a file operation copy on files
C:\Inetpub\wwwroot\DONE\election_procedure\tempBylaws\Roser.doc and
C:\Inetpub\wwwroot\DONE\election_procedure\Bylaws.
I hardcoded the
I was just informed by the Sys Admins that I cannot upload files to their
production servers, so please disregard and thanks for the tips.
--
Bruce Sorge
I'm a mawg: half man, half dog. I'm my own best friend!
~|
Upgrade to
Here is a strange one..
I have to copy files from on server to another using cffile. Under
CFMX 6.1I just changed the CF services to login to an account that had
rights to
copy files from on server to another. Simple and easy. Now with CF7, I
attempt to change the account to something other than
Is there a way to upload and rename a file at the same time using
CFFILE, or does that need to be two separate operations?
I'm using a function to filter out spaces and unwanted characters in the
file names
like:
#filterFilename(cffile.serverfile)#
- and this works after the fact
Would need to be two seperate actions.
IE:
CFFILE action=upload filefield=yourFileField accept=type
destination=C:\myFolder\ nameconflict=makeunique
CFSET RenameFile = Whatever
CFFILE action=rename source=C:\myFolder\#File.ServerFile#
destination=C:\myFolder\#Trim(RenamePhoto)#
Doug B
It would need to be 2 separate cffiles afaik. Most people however, like to
upload files to temp folders, do some processing then move it to its final
home. You CAN move and rename at the same time with one cffile... just give
the destination the new path and file name
-Original Message
Good morning,
I'm sure this is a simple one for most of you, but I forget. If I perform a
cffile action=read etc ...
on an image file, I should be able to get #FILE.fileSize# correct? I was able
to do it using action=upload.
Thanks
D
I may be wrong, but I believe that you can only do that via cfdirectory
The read pretty much does only that read the contents of the file.
Doug
- Original Message -
From: [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Monday, December 18, 2006 7:46 AM
Subject: cffile
401 - 500 of 2417 matches
Mail list logo