October 04, 2006 8:12 PM
> To: CF-Talk
> Subject: Re: How to get file sizes dynamically?
>
> I should have known that I was going to have to do some math on the file
> size returned by cfdirectory...
>
> I have this:
>
> Which gives me 8.26320075989
>
> How do I
; > > > Oh yea. Duh. Disregard my post. :)
> > > >
> > > > > -Original Message-
> > > > > From: Jerry Johnson [mailto:[EMAIL PROTECTED]
> > > > > Sent: Wednesday, October 04, 2006 6:40 PM
> > > > > To: CF
So is NumberFormat()
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613 8676 4223
Mobile: 0404 998 273
-Original Message-
From: Coldfusion [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 October 2006 10:15 AM
To: CF-Talk
Subject: RE: How to get file sizes
; >
> > -Aaron
> >
> > On 10/4/06, Ray Champagne <[EMAIL PROTECTED]> wrote:
> > > Oh yea. Duh. Disregard my post. :)
> > >
> > > > -Original Message-
> > > > From: Jerry Johnson [mailto:[EMAIL PROTECTED]
> > > >
CFLib.org is your friend:
http://www.cflib.org/udf.cfm?id=787
-Original Message-
From: Aaron Roberson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 04, 2006 8:12 PM
To: CF-Talk
Subject: Re: How to get file sizes dynamically?
I should have known that I was going to have to do some
lize cffile read the file into memory and the
> > rest.
> >
> > -Aaron
> >
> > On 10/4/06, Ray Champagne <[EMAIL PROTECTED]> wrote:
> > > Oh yea. Duh. Disregard my post. :)
> > >
> > > > -Original Message-
> > > > From
age-
> > > From: Jerry Johnson [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, October 04, 2006 6:40 PM
> > > To: CF-Talk
> > > Subject: Re: How to get file sizes dynamically?
> > >
> > > cffile will read the entire file into a memory variabl
> > From: Jerry Johnson [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, October 04, 2006 6:40 PM
> > To: CF-Talk
> > Subject: Re: How to get file sizes dynamically?
> >
> > cffile will read the entire file into a memory variable. which with an
> > mp3 file w
I would bet only one of us learned this through personal experience.
=)
My xServe in the corner still gives me dirty looks.
On 10/4/06, Ray Champagne <[EMAIL PROTECTED]> wrote:
> Oh yea. Duh. Disregard my post. :)
~|
Introdu
Oh yea. Duh. Disregard my post. :)
> -Original Message-
> From: Jerry Johnson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 04, 2006 6:40 PM
> To: CF-Talk
> Subject: Re: How to get file sizes dynamically?
>
> cffile will read the entire file into a memory
4, 2006 6:23 PM
> To: CF-Talk
> Subject: Re: How to get file sizes dynamically?
>
> I was doing a search through cfQuickDocs and found Should I
> use or ?
>
> In a search I did on cffile I somebody suggested the following:
>
>
>
> File Size: #Len(MyFile)#
]> wrote:
> > will return a query containing all the info you
> > want.
> >
> >
> > -Original Message-
> > From: Aaron Roberson [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, October 04, 2006 5:08 PM
> > To: CF-Talk
> > Subject:
<[EMAIL PROTECTED]> wrote:
> > will return a query containing all the info you
> > want.
> >
> >
> > -Original Message-
> > From: Aaron Roberson [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, October 04, 2006 5:08 PM
> > To: CF-Talk
:[EMAIL PROTECTED]
Sent: Wednesday, October 04, 2006 5:23 PM
To: CF-Talk
Subject: Re: How to get file sizes dynamically?
I was doing a search through cfQuickDocs and found Should I use
or ?
In a search I did on cffile I somebody suggested the following:
File Size: #Len(MyFile)#
Thanks again
info you
> want.
>
>
> -Original Message-
> From: Aaron Roberson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 04, 2006 5:08 PM
> To: CF-Talk
> Subject: How to get file sizes dynamically?
>
> I have a list of mp3 files that I am making available for dow
you can use the cfdirectory tag to get a query of all of the files in a folder.
you can use the filter attribute to limit it to *.mp3 files.
The size field in the returned query will give you the size in Bytes.
The name field in the returned query will gove you the filename.
If you need to get mo
will return a query containing all the info you
want.
-Original Message-
From: Aaron Roberson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 04, 2006 5:08 PM
To: CF-Talk
Subject: How to get file sizes dynamically?
I have a list of mp3 files that I am making available for download
x27;t list all the files in the
directory, JUST the given file.
..
Ben Nadel
Certified Advanced ColdFusion Developer
www.bennadel.com
-Original Message-
From: Aaron Roberson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 04, 2006 6:08 PM
To: CF-Talk
Subject: How t
should provide you with that information.
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
-
| 1 | |
- Binary Soduko
| | |
-
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
Confidentiality Notice: This mess
I have a list of mp3 files that I am making available for download on
my website and would like to indicate what the file size of each mp3
is.
How can I do this programmaticly?
Thanks for the help!
Aaron
~|
Introducing the Fusio
> John wrote:
> I'm not a unix guy so I appologize for the (hopefully) easy question.
> What's the easiest way to get the file size of a file that is already
> sitting on the server? I need to loop over a list of files and save the
I just use "du -k -d ." (no quotes) which will tell the size of f
of course i meant "wc -c [your_filename_here]"
i'll just get my coat...
/t
>-Original Message-
>From: RADEMAKERS Tanguy
>Sent: Thursday, April 28, 2005 7:59 PM
>To: 'cf-talk@houseoffusion.com'
>Subject: RE: Get file size on UNIX?
>
>&
>something like this?
>
>ls -alh ./ | grep -v ".* \." | awk {'print $5"|" $9'}
or "wc -c"
/t
~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm
> I'd go with the cfdirecotry myself ;)
*cfdirectory* I need a cfspell checker - stupid lexdysia
--
~Blog~
http://www.robrohan.com
~The cfml plug-in for eclipse~
http://cfeclipse.tigris.org
~open source xslt IDE~
http://treebeard.sourceforge.net
On 4/28/05, Burns, John D <[EMAIL PROTECTED]> wrote:
> Yeah, I guess that would work. I was thinking more along the lines of an
> OS function or something.
something like this?
ls -alh ./ | grep -v ".* \." | awk {'print $5"|" $9'}
I'd go with the cfdirecotry myself ;)
--
~Blog~
http://www.rob
1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com
- Original Message -
From: "Burns, John D" <[EMAIL PROTECTED]>
To: "CF-Talk"
Sent: Thursday, April 28, 2005 10:19 AM
Subject: RE: Get file size on UNIX?
> Yeah, I guess that wou
PM
To: CF-Talk
Subject: Re: Get file size on UNIX?
CFDIRECTORY will do it, but has the cost of scanning the whole
directory, which may or may not matter. You can also use java.io.File
to do it like this #createObject("java",
"java.io.File").init("/full/path/to/file")
dFusion MX Developer
Wyle Laboratories, Inc. | Web Developer
-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 12:14 PM
To: CF-Talk
Subject: RE: Get file size on UNIX?
cfdirectory?
-Original Message-
From: Burns, John D [mailto:[EMAIL
CFDIRECTORY will do it, but has the cost of scanning the whole
directory, which may or may not matter. You can also use java.io.File
to do it like this #createObject("java",
"java.io.File").init("/full/path/to/file").length()#, but that
obviously has to be done individually for each file. Both of
cfdirectory?
-Original Message-
From: Burns, John D [mailto:[EMAIL PROTECTED]
Sent: Thursday, 28 April 2005 11:58
To: CF-Talk
Subject: Get file size on UNIX?
I'm not a unix guy so I appologize for the (hopefully) easy question.
What's the easiest way to get the file size
I'm not a unix guy so I appologize for the (hopefully) easy question.
What's the easiest way to get the file size of a file that is already
sitting on the server? I need to loop over a list of files and save the
file size and name of each file to a db. Any help that can be offered
would be greatl
PM
To: CF-Talk
Subject: Re: How to get file information?
I just tested it with CF5 on a desktop-class machine on a directory of
~ 47,000 GIF and JPEG images each between 15k and 30k in size.
CFDIRECTORY with a filename in the "Filter" attribute came back in 120
ms. 20 of that for CFD
size that cfdirectory takes significant
> longer than a java.io.File construction
>
> I could be wrong, as this is all speculation.
>
> dov
>
> -Original Message-
> From: Calvin Ward [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 10, 2005 2:54 PM
> To:
peculation.
dov
-Original Message-
From: Calvin Ward [mailto:[EMAIL PROTECTED]
Sent: Monday, January 10, 2005 2:54 PM
To: CF-Talk
Subject: RE: How to get file information?
Actually, it wouldn't have to iterate
Should just return the single file.
- Calvin
-Original Message-
Actually, it wouldn't have to iterate
Should just return the single file.
- Calvin
-Original Message-
From: Katz, Dov B (IT) [mailto:[EMAIL PROTECTED]
Sent: Monday, January 10, 2005 2:32 PM
To: CF-Talk
Subject: RE: How to get file information?
CFDirectory is probably not
mance tradeoff, but definitely more features doing
it this way...
-Dov
-Original Message-
From: Al Everett [mailto:[EMAIL PROTECTED]
Sent: Monday, January 10, 2005 2:18 PM
To: CF-Talk
Subject: Re: How to get file information?
Use CFDIRECTORY with the "Filter" attribute. Then
Use CFDIRECTORY with the "Filter" attribute. Then you'll only get
information about your specific file.
On Mon, 10 Jan 2005 14:16:56 -0500, Kazmierczak, Kevin
<[EMAIL PROTECTED]> wrote:
> How would one get information on a file from CF? I want to know when
> the file was last modified. I know I
I guess I could use cfdirectory with a filter, that would probably do
it.
-Original Message-
From: Kazmierczak, Kevin [mailto:[EMAIL PROTECTED]
Sent: Monday, January 10, 2005 2:17 PM
To: CF-Talk
Subject: How to get file information?
How would one get information on a file from CF? I
How would one get information on a file from CF? I want to know when
the file was last modified. I know I could use cfdirectory and loop
over the directory contents and get it that way but that seems like WAY
too much work just to get the date on one file.
How come you can't use cffile variab
Unless you want the users system to try and open the file in the
associated program, don't use a specific type...
Here is an example...
name="Content-Disposition"
value="attachment;
filename=#DOCUMENT_NAME#.#DOCUMENT_EXTENSION#">
file="#variables['strDoc']#"
type="application/x-unknown
ok but since it'n in pdf what type do i use in cfcontent? and is it gonna
stop the rest of the page?
Pat
_
From: Mark Drew [mailto:[EMAIL PROTECTED]
Sent: August 25, 2004 11:35
To: CF-Talk
Subject: Re: get file
checkout cfcontent, depends how you reference your files you can
.
Cheers,
Joe
- Original Message -
From: CFDEV <[EMAIL PROTECTED]>
Date: Wed, 25 Aug 2004 11:28:31 -0400
Subject: get file
To: CF-Talk <[EMAIL PROTECTED]>
Hi,
I have files on our server and I want people (once they're logged in) to
download a file without knowing hte
checkout cfcontent, depends how you reference your files you can have
them all somewhere that isnt web accessable and reference them like
index.cfm?file=mypdf.pfd
MD
On Wed, 25 Aug 2004 11:28:31 -0400, CFDEV <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have files on our server and I want people (once
You can use cfcontent to serve the file - it does not even need to be inside the
web root.
-Mark
-Original Message-
From: CFDEV [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 25, 2004 10:29 AM
To: CF-Talk
Subject: get file
Hi,
I have files on our server and I want
Hi,
I have files on our server and I want people (once they're logged in) to
download a file without knowing hte path of the file..
Right now I was doing a popup with the file (a PDF) and it was alright.. but
now that many anti-virus or google toolbar are blocking pop up file, I need
another
> CF 5.0 generally can't access network resources with
> cfcontent because the cfcontent tag itself is running in the
> Web server process, not the CF process. If you are running
> Apache, you can change the Apache service's permissions to
> access the resource and it will work.
>
> If you ar
CF 5.0 generally can't access network resources with cfcontent because the cfcontent tag itself is running in the Web server process, not the CF process. If you are running Apache, you can change the Apache service's permissions to access the resource and it will work.
If you are running IIS, you
Subject:
From: Kristen Winsor <[EMAIL PROTECTED]>
Date: Wed, 28 Jul 2004 12:20:13 -0400
Thread:
http://www.houseoffusion.com/cf_lists/index.cfm/method=messages&threadid
=34202&forumid=4#172317
Kristen, I have done my home work on this one before, here is the best I
have found.
Patrick M
> > I was just testing w/ cfcontent..but this does not appear to let me
>
> > retrieve a file from another server??
>
> If you are running CF 5.0 or earlier, that's true. If you are running
> CFMX, cfcontent runs with the permissions of the server user that is
> running the CF Application Serv
> I was just testing w/ cfcontent..but this does not appear to let me
> retrieve a file from another server??
If you are running CF 5.0 or earlier, that's true. If you are running CFMX, cfcontent runs with the permissions of the server user that is running the CF Application Server process. Here
On my website behind a password protected area I need to give the
ability for the webuser to "retrieve" a PDFfile.
I know I could open a one way port to allow the user to view the file simply by but I don't want the webusers (who have ADOBE writer) to be able to change anything on the file.(passw
Message-
> From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 21, 2004 4:18 PM
> To: CF-Talk
> Subject: Get File Info
>
> Is there a CFX tag (has to work on CF 5) that can take a file
> name and return it's physical size? CFDIRECTORY can be used,
Is there a CFX tag (has to work on CF 5) that can take a file name and return it's physical size? CFDIRECTORY can be used, but it's slow on large directories.
I know the tag exists, but can't remember at the moment.
Thanks
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[
>
>Is it possible to get a list of files in a folder to store in an array? I
>can do it in vbscrip but I am new to CF and could do with some help.
>
Look in to the cfdirectory tag. It'll do everything you want and then some.
Regards,
Dave.
[Todays Threads]
[This Message]
[Subscription]
[F
Check out CFDIRECTORY as well as CFFILE if you need.
-Original Message-
From: John Croney [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 2:52 PM
To: CF-Talk
Subject: Get file list
Is it possible to get a list of files in a folder to store in an array? I
can do it in vbscrip but I
t accepts literal chars, as well
as '?' and '*' wildcards.
If you really need it as an array (rather than a query), you can follow the
CFDIRECTORY up with this:
Cheers,
barneyb
> -Original Message-
> From: John Croney [mailto:[EMAIL PROTECTED]
> Sent: Tuesday,
John Croney wrote:
> Is it possible to get a list of files in a folder to store in an
> array? I can do it in vbscrip but I am new to CF and could do with
> some help.
>
Have a look at CFDirectory. It will return you a query with all sorts
of info about files in a particular directory.
Stephe
Is it possible to get a list of files in a folder to store in an array? I can do it in vbscrip but I am new to CF and could do with some help.
Thanks
John
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
58 matches
Mail list logo