RE: cffile action=read does FILE.fileSize still work?

2006-12-18 Thread Peterson, Chris
[mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 9:53 AM To: CF-Talk Subject: Re: cffile action=read does FILE.fileSize still work? 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

Re: cffile action=read does FILE.fileSize still work?

2006-12-18 Thread Doug Brown
Yeah, what he said :) - Original Message - From: Peterson, Chris [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Monday, December 18, 2006 7:54 AM Subject: RE: cffile action=read does FILE.fileSize still work? To elaborate, you can use cfdirectory with the filter

RE: cffile action=read does FILE.fileSize still work?

2006-12-18 Thread Bobby Hartsfield
Cffile action read wont give you anything more than the content of the file. A len(myfile) /1024 may give you the kilobytes though :-) cffile action=read file=d:\path\to\my\file.ext variable=myfile / #len(myfile) / 1024# kb Or...you can cfdirectory the parent dir of the file and use a filter

Re: cffile action=read does FILE.fileSize still work?

2006-12-18 Thread Massimo Foti
This will retrieve the size of any file: http://www.olimpo.ch/tmt/cfc/tmt_file_io/ http://www.olimpo.ch/tmt/cfc/tmt_file_io/api.htm#method_getFileSize Massimo Foti, web-programmer for hire Tools for ColdFusion and Dreamweaver developers:

CFFILE issues

2006-12-15 Thread Rick Root
file. The tmp file is created, is owned by the same user as the CF user and is readable. CFFILE says the source attribute is invalid. Later in the comments, he mentions that move doesn't work, but it works fine if he uses two separate cffile operations to copy and then delete

RE: CFFILE issues

2006-12-15 Thread Andy Matthews
, December 15, 2006 8:56 AM To: CF-Talk Subject: CFFILE issues A user of image.cfc reported a problem with the writeImage() function since I implemented saving the image to a temp file and then moving it. He wrote in my blog: * If I use the resize() method and pass in both the source

Looping over (CFFILE action=update and rename)

2006-12-14 Thread P . Merritt
We've a problem with Java Applet calling CFFILE action=upload and Rename many times. The applet enables the user to collect together a bunch of images and then calls a CFM page for each. The CFM page uploads, then renames, and creates thumbnails. This applet ran great on CF 4.5 Windows 2000

RE: Looping over (CFFILE action=update and rename)

2006-12-14 Thread Dave Watts
We've a problem with Java Applet calling CFFILE action=upload and Rename many times. The applet enables the user to collect together a bunch of images and then calls a CFM page for each. The CFM page uploads, then renames, and creates thumbnails. This applet ran great on CF 4.5 Windows

CFFILE: Create/Write dynamically xml file

2006-12-11 Thread coldfusion . developer
All, I need to create/write an xml file using cffile and I'm getting errors due to the xml dtd. (below) I've never used cf's xml tage before. Any direction would be great. What' I've got so far. CFQUERY name=ANY_APPROVED datasource=#datasource# select * from dbo.tbl_babies_of_week_homepage

Re: CFFILE: Create/Write dynamically xml file

2006-12-11 Thread Jerry Johnson
PROTECTED] wrote: All, I need to create/write an xml file using cffile and I'm getting errors due to the xml dtd. (below) I've never used cf's xml tage before. Any direction would be great. What' I've got so far. CFQUERY name=ANY_APPROVED datasource=#datasource# select * from

Re: CFFILE: Create/Write dynamically xml file

2006-12-11 Thread coldfusion . developer
Still get an error ... The following information is meant for the website developer for debugging purposes. Error Occurred While Processing Request Invalid token '1' found on line 52 at column 26. The CFML compiler was processing: a cffile tag beginning on line 49, column 2. a cffile tag

Re: CFFILE: Create/Write dynamically xml file

2006-12-11 Thread Josh Nathanson
You might be better served doing something like (this is pseudocode) - cfxml variable=gallery gallery album cfloop query --- /cfloop /album /gallery /cfxml cffile action=write file=myxmlfile.xml output=#gallery# Just might be easier

RE: CFFILE: Create/Write dynamically xml file

2006-12-11 Thread Ian Skinner
cffile action = write file = #BWK_XML_PATH#images.xml output = ?xml version=1.0 encoding=UTF-8? gallery album title=Babies of the week description=Babies of the week lgPath=/gallery/babyimages1/large/ CFOUTPUT query=ANY_APPROVED img src=#bwk_image# / /CFOUTPUT /album /gallery Your main

Re: CFFILE: Create/Write dynamically xml file

2006-12-11 Thread Jerry Johnson
is meant for the website developer for debugging purposes. Error Occurred While Processing Request Invalid token '1' found on line 52 at column 26. The CFML compiler was processing: a cffile tag beginning on line 49, column 2. a cffile tag beginning on line 49, column 2. The error occurred in D

Re: CFFILE: Create/Write dynamically xml file

2006-12-11 Thread coldfusion . developer
# / /CFLOOP /album /gallery /CFXML cffile action = write file = #BWK_XML_PATH#images.xml output = #gallery# and the file output was ... ?xml version=1.0 encoding=UTF-8? gallery album description=Babies of the week lgPath=/gallery

Re: CFFILE: Create/Write dynamically xml file

2006-12-11 Thread Jerry Johnson
description=Babies of the week lgPath=/gallery/babyimages1/large/ CFloop query=ANY_APPROVED img src=#bwk_image# / /CFLOOP /album /gallery /CFXML cffile action = write file = #BWK_XML_PATH

RE: CFFILE: Create/Write dynamically xml file

2006-12-11 Thread Ian Skinner
THE #bwk_image# VARIABLE ISN'T PARSING. HOW COME? THANKS Yeah need them cfoutput thingies... cfoutput CFXML variable=gallery gallery album title=Babies of the week description=Babies of the week lgPath=/gallery/babyimages1/large/ CFloop

RE: CFFILE: Create/Write dynamically xml file

2006-12-11 Thread Dave Watts
CFloop query=ANY_APPROVED img src=#bwk_image# / /CFLOOP ... THE #bwk_image# VARIABLE ISN'T PARSING. HOW COME? You don't have a CFOUTPUT tag around it. CFLOOP doesn't provide CFOUTPUT functionality, it only, well,

Re: CFFILE: Create/Write dynamically xml file

2006-12-11 Thread Josh Nathanson
: CFFILE: Create/Write dynamically xml file Thanks guys ... almst there ... I did ... CFXML variable=gallery gallery album title=Babies of the week description=Babies of the week lgPath=/gallery/babyimages1/large/ CFloop query=ANY_APPROVED img src=#bwk_image# / /CFLOOP /album /gallery

Re: Which type of lock is best for cffile rename

2006-12-10 Thread Massimo Foti
As long as anyone else using those files in their code uses exactly the same name, it will work. Thanks James. And I suppose, when running on a shared server, it doesnt hurt to reduce the likelyhood of a conflict by using a more unique name like FileChange3076 instead of FileChange An easy

Re: Which type of lock is best for cffile rename

2006-12-10 Thread James Holmes
Paul's hash method works well for that too (and can potentially make the lock name a little more manageable, depending on the length of the file path). The double lock or something similar would be necessary, since we are dealing with two files that need to be locked (the old name and the new). I

Which type of lock is best for cffile rename

2006-12-09 Thread Archie Campbell
I am renaming a file on a shared server and am wondering what type of lock is best I am currently doing the following: cflock name=FilenameChange timeout=10 cfffile action=rename source=#oldFilename# destination=#newFilename# /cflock Is that OK? Thanks Archie Campbell

Re: Which type of lock is best for cffile rename

2006-12-09 Thread James Holmes
As long as anyone else using those files in their code uses exactly the same name, it will work. On 12/10/06, Archie Campbell [EMAIL PROTECTED] wrote: I am renaming a file on a shared server and am wondering what type of lock is best I am currently doing the following: cflock

cffile question

2006-11-12 Thread Bob Imperial
being cffile and the write action and what the limitations are as to what can be put into the output. I have a bit of code that creates a few directories and then writes and index page with a short message and datetime stamp. Here's what I'm using so far after my directories are created. 1

Re: cffile question

2006-11-12 Thread Jon Clausen
On Nov 12, 2006, at 11:57 AM, Bob Imperial wrote: 1.)In outputting my datetime here, how would I go about adding the AM/PM designation for output? cfset myDate = now() cffile action=write file=#BaseDir#\index.cfm output=Website directories were created successfully

Re: cffile question

2006-11-12 Thread Doug Brown
cfset myDate = now() cffile action=write file=#BaseDir#\index.cfm output=Website directories were created successfully on #DateFormat(CreateODBCDate(myDate), d, )# #timeFormat(myDate, hh:mm:ss:tt)# Doug - Original Message - From: Bob Imperial [EMAIL PROTECTED

Re: cffile question

2006-11-12 Thread Rick Root
Jon Clausen wrote: On Nov 12, 2006, at 11:57 AM, Bob Imperial wrote: 1.)In outputting my datetime here, how would I go about adding the AM/PM designation for output? cfset myDate = now() cffile action=write file=#BaseDir#\index.cfm output=Website directories were created

RE: cffile question

2006-11-12 Thread Bob Imperial
Thanks Doug! Had to be that simple eh ;-) -Original Message- From: Doug Brown [mailto:[EMAIL PROTECTED] Sent: Sunday, November 12, 2006 12:38 PM To: CF-Talk Subject: Re: cffile question cfset myDate = now() cffile action=write file=#BaseDir#\index.cfm output=Website

RE: cffile question

2006-11-12 Thread Bob Imperial
brain can come up with is definitely helping things to click for me. Bob -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Sunday, November 12, 2006 12:39 PM To: CF-Talk Subject: Re: cffile question Jon Clausen wrote: On Nov 12, 2006, at 11:57 AM, Bob Imperial wrote: 1

RE: cffile question

2006-11-12 Thread Bob Imperial
for the write to no avail. Is what I am trying to do even possible? I am emailing a link to the index page and I'm trying to simply center the output there. TIA Bob cffile action=write file=#BaseDir#\index.cfm output=Website directories were created successfully on #DateFormat

GetTempDirectory CFFILE

2006-11-12 Thread Ken
I am using GetTempDirectory() CFFILE to upload files to a server into the TempDIrectory. My question... Is there a Cold Fusion process that automatically deletes the temp files in the temp directory after a certain time period? I am using CF MX 7. OR, do you have to writing something yourself

RE: GetTempDirectory CFFILE

2006-11-12 Thread Snake
Once a file is moved to your destination folder using CFFILE afte rthe upload, it is deleted from the temp folder. Russ -Original Message- From: Ken [mailto:[EMAIL PROTECTED] Sent: 12 November 2006 22:42 To: CF-Talk Subject: GetTempDirectory CFFILE I am using GetTempDirectory

Re: GetTempDirectory CFFILE

2006-11-12 Thread Ken
that automatically deletes the temp files in the temp directory after a certain time period? I am using CF MX 7. OR, do I have to writing something to clean out the temp directory? Thanks. On 11/12/06, Snake [EMAIL PROTECTED] wrote: Once a file is moved to your destination folder using CFFILE afte

RE: GetTempDirectory CFFILE

2006-11-12 Thread Snake
There is no automatic process I am aware of, if you don't move it, it will stay there. Russ -Original Message- From: Ken [mailto:[EMAIL PROTECTED] Sent: 12 November 2006 23:00 To: CF-Talk Subject: Re: GetTempDirectory CFFILE Thanks Russ, However, my situation is a bit different. I am

CFFILE action=upload

2006-11-10 Thread coldfusion . developer
All, Does anyone know a way to check a image file's height and width before or after an image has been uploaded? I'm restrictinig the file type for *.jpg only. I want to take the height and width values of the image being uploaded and see if the values fall within an acceptable height and width

Re: CFFILE action=upload

2006-11-10 Thread Ryan Stille
[EMAIL PROTECTED] wrote: All, Does anyone know a way to check a image file's height and width before or after an image has been uploaded? I'm restrictinig the file type for *.jpg only. I want to take the height and width values of the image being uploaded and see if the values fall

Re: CFFILE action=upload

2006-11-10 Thread Rick Root
[EMAIL PROTECTED] wrote: Does anyone know a way to check a image file's height and width before or after an image has been uploaded? I'm restrictinig the file type for *.jpg only. Search the archive, there was a discussion.. last week maybe... Massimo has a javascript that detects image

Re: CFFILE action=upload

2006-11-10 Thread Gert Franz
If you are using Railo then you can use the tag CFFILE action=info which returns the width and height of an image file if it is jpg or gif... Greetings / GrĂ¼sse Gert Franz Customer Care Railo Technologies GmbH [EMAIL PROTECTED] www.railo.ch Join our Mailing List / Treten Sie unserer

Re: CFFILE action=upload

2006-11-10 Thread Massimo Foti
Search the archive, there was a discussion.. last week maybe... Massimo has a javascript that detects image dimensions BEFORE uploading. http://www.massimocorner.com/validator/samples/image_upload.htm to check after, you can use image.cfc (www.opensourcecf.com/imagecfc) .. probably more

RE: CFFILE action=upload

2006-11-10 Thread Bobby Hartsfield
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 11:38 AM To: CF-Talk Subject: CFFILE action=upload All, Does anyone know a way to check a image file's height and width before or after an image has been uploaded? I'm restrictinig the file type for *.jpg only. I want

Re: CFFILE action=upload

2006-11-10 Thread coldfusion . developer
. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 11:38 AM To: CF-Talk Subject: CFFILE action=upload All, Does anyone know a way to check a image file's height and width before or after an image has been uploaded? I'm restrictinig the file type

RE: CFFILE Upload problems

2006-10-04 Thread Dirk Sieber
PROTECTED] Sent: October 3, 2006 1:14 PM To: CF-Talk Subject: Re: CFFILE Upload problems I saw this once but the server was out of Hard Drive space. Dirk Sieber wrote: Hi everyone, We're still having continuing problems with uploading files to one of our servers using: CFFILE

CFFILE Upload problems

2006-10-03 Thread Dirk Sieber
Hi everyone, We're still having continuing problems with uploading files to one of our servers using: CFFILE ACTION= UPLOAD and I'm wondering if anyone else has seen this. Files under about 100k or so are fine - above that, things get erratic, with larger (ie 1MB+) files failing pretty

Re: CFFILE Upload problems

2006-10-03 Thread Jake Churchill
I saw this once but the server was out of Hard Drive space. Dirk Sieber wrote: Hi everyone, We're still having continuing problems with uploading files to one of our servers using: CFFILE ACTION = UPLOAD and I'm wondering if anyone else has seen this. Files under about 100k or so

Odd cffile error....

2006-09-12 Thread Jason Fill
I am trying to create an application that will download log files from a server every hour. The application works ok, but the problem is I get the following error on occasion. An exception occurred when performing the FTP getfile operation. The cause of this exception was that: IOException

RE: Odd cffile error....

2006-09-12 Thread COLLIE David
An exception occurred when performing the FTP getfile operation. The cause of this exception was that: IOException caught while copying.. Rather than cffile, do you mean cfftp? ~| Introducing the Fusion Authority

RE: Odd cffile error....

2006-09-12 Thread COLLIE David
An exception occurred when performing the FTP getfile operation. The cause of this exception was that: IOException caught while copying.. Rather than cffile, do you mean cfftp? This may help http://www.mail-archive.com/list@list.dfwcfug.org/msg00225.html

Re: allowable file types with cffile

2006-08-06 Thread Jochem van Dieten
Bob Imperial wrote: OK all you mac users out there .. Is there a full list of allowable file types out there somewhere for cffile and uploads? No. The list of allowable file types depends on the purpose of the file upload functionality. If you are creating a report upload facility (PDF

allowable file types with cffile

2006-08-05 Thread Bob Imperial
OK all you mac users out there .. Is there a full list of allowable file types out there somewhere for cffile and uploads? I don't necessarily want to allow ALL and I have some new file extensions I am not familiar with such as .CR2 files. Bob

RE: Releasing CFFile memory

2006-07-28 Thread Brad Wood
. ~Brad -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, July 27, 2006 7:07 PM To: CF-Talk Subject: Re: Releasing CFFile memory This is standard for Java. Memory isn't garbage collected insantly - if it were, your server would perform badly. If you watch

Releasing CFFile memory

2006-07-27 Thread Kervin L. Pierre
Hello, Reading large files into memory using CFFile, in a loop, creates a memory leak. As anyone else seen this? Even if the same variable is being used ColdFusion never releases the memory of previous files. It seems that at least some of that memory sticks around even after the script ends

Re: Releasing CFFile memory

2006-07-27 Thread Robertson-Ravo, Neil (RX)
. Pierre [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Thu Jul 27 16:59:01 2006 Subject: Releasing CFFile memory Hello, Reading large files into memory using CFFile, in a loop, creates a memory leak. As anyone else seen this? Even if the same variable is being used ColdFusion never

RE: Releasing CFFile memory

2006-07-27 Thread Dirk Sieber
We've also seen a lot of issues using larger files with CFFile - we're currently looking at replacing it with a Java solution, but we haven't settled on anything yet. If someone out there's already got a good solution, I'd like to hear about it. Dirk -Original Message- From: Kervin

RE: Releasing CFFile memory

2006-07-27 Thread Russ
Wasn't there some code posted a few days/weeks ago on how to read a large file using java? -Original Message- From: Dirk Sieber [mailto:[EMAIL PROTECTED] Sent: Thursday, July 27, 2006 12:34 PM To: CF-Talk Subject: RE: Releasing CFFile memory We've also seen a lot of issues

RE: Releasing CFFile memory

2006-07-27 Thread Dirk Sieber
If there was, I'd appreciate it if someone could point me in the right direction... -Original Message- From: Russ [mailto:[EMAIL PROTECTED] Sent: July 27, 2006 9:42 AM To: CF-Talk Subject: RE: Releasing CFFile memory Wasn't there some code posted a few days/weeks ago on how

RE: Releasing CFFile memory

2006-07-27 Thread Ben Nadel
Does it make any difference if you use the RESULT attribute of the CFFILE tag as opposed to just using the produced CFFILE variable? ... Ben Nadel www.bennadel.com -Original Message- From: Kervin L. Pierre [mailto:[EMAIL PROTECTED] Sent: Thursday, July 27, 2006 11

RE: Releasing CFFile memory

2006-07-27 Thread Kervin L. Pierre
PROTECTED] wrote: If there was, I'd appreciate it if someone could point me in the right direction... -Original Message- From: Russ [mailto:[EMAIL PROTECTED] Sent: July 27, 2006 9:42 AM To: CF-Talk Subject: RE: Releasing CFFile memory Wasn't there some code posted a few

RE: Releasing CFFile memory

2006-07-27 Thread Kervin L. Pierre
Hello Ben, We use the 'VARIABLE' tag with 'READBINARY' type. Since we're doing binary RESULT doesn't seem available. Best regards, Kervin --- Ben Nadel [EMAIL PROTECTED] wrote: Does it make any difference if you use the RESULT attribute of the CFFILE tag as opposed to just using

RE: Releasing CFFile memory

2006-07-27 Thread Ben Nadel
: Releasing CFFile memory Hello Ben, We use the 'VARIABLE' tag with 'READBINARY' type. Since we're doing binary RESULT doesn't seem available. Best regards, Kervin --- Ben Nadel [EMAIL PROTECTED] wrote: Does it make any difference if you use the RESULT attribute of the CFFILE tag as opposed

Re: Releasing CFFile memory

2006-07-27 Thread James Holmes
, Reading large files into memory using CFFile, in a loop, creates a memory leak. As anyone else seen this? Even if the same variable is being used ColdFusion never releases the memory of previous files. It seems that at least some of that memory sticks around even after the script ends. We found

Re: size limit for cffile?

2006-07-13 Thread Jochem van Dieten
Matt Robertson wrote: Yes I know :-) I'm saying that I cannot get the conditional loop to work, and I cannot recall ever needing an isdefined in a non-cfscripted loop so I have nothing to fall back upon. cfset srcFile = C:/JRun4/bin/jvm.config cfset fr =

Re: size limit for cffile?

2006-07-13 Thread Matt Robertson
On 7/12/06, Jochem van Dieten [EMAIL PROTECTED] wrote: cfloop condition='isDefined(str)' I am such an idiot... single quotes on the OUTSIDE. The one thing I didn't try. Thanks Jochem! -- [EMAIL PROTECTED] Janitor, MSB Web Systems mysecretbase.com

RE: size limit for cffile?

2006-07-13 Thread Munson, Jacob
Does this work for binary files? I suppose it should, but the reading line by line bit makes me curious. -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 12, 2006 3:07 PM To: CF-Talk Subject: Re: size limit for cffile? For what it's worth, I

size limit for cffile?

2006-07-12 Thread Matt Robertson
I have a client who has the need to read in real big text files daily. 100mb plus. Anyone know what the functional limit is on cffile, if any? Server has 2gb of RAM and is a dual Xeon. -- [EMAIL PROTECTED] Janitor, MSB Web Systems mysecretbase.com

Re: size limit for cffile?

2006-07-12 Thread Rick Root
Matt Robertson wrote: I have a client who has the need to read in real big text files daily. 100mb plus. Anyone know what the functional limit is on cffile, if any? Server has 2gb of RAM and is a dual Xeon. If I were on another list, I'd just tell you to search the archives

Re: size limit for cffile?

2006-07-12 Thread Matt Robertson
, Rick Root [EMAIL PROTECTED] wrote: Matt Robertson wrote: I have a client who has the need to read in real big text files daily. 100mb plus. Anyone know what the functional limit is on cffile, if any? Server has 2gb of RAM and is a dual Xeon. If I were on another list, I'd just tell you

RE: size limit for cffile?

2006-07-12 Thread Ben Forta
With really big files you may not want to read the entire file into memory the way cffile does. I've seen some folks user Java file i/o calls to get around this, essentially inline Java calls to read the file line by line. This will be slower, but, it'll work. --- Ben -Original Message

Re: size limit for cffile?

2006-07-12 Thread Rick Root
Sorry, Matt, I didn't read close enough either! There are threads out there also relating to READING large files. However, I'd probably also suggest looking into using the java file I/O stuff to avoid the issues relating to load a 100MB file into memory and dealing with it. Because I love

Re: size limit for cffile?

2006-07-12 Thread Matt Robertson
oooh. Thanks Rick! One of these days I need to learn that stuff. Reminds me of something else too. Geez what a bum I am. Check your paypal box in a bit. -- [EMAIL PROTECTED] Janitor, MSB Web Systems mysecretbase.com ~|

Re: size limit for cffile?

2006-07-12 Thread Rick Root
always below 400ms. Using CFFILE, it was much more erratic... coming in as low as 450ms but often coming in at 2000ms and higher. Rick Rick Root wrote: Sorry, Matt, I didn't read close enough either! There are threads out there also relating to READING large files. However, I'd probably

Re: size limit for cffile?

2006-07-12 Thread B V
Hmm. Interesting idea Calling JAVA objects. I should really get into that. Power fo Java with Coldfusion ease On 7/12/06, Matt Robertson [EMAIL PROTECTED] wrote: oooh. Thanks Rick! One of these days I need to learn that stuff. Reminds me of something else too. Geez what

Re: size limit for cffile?

2006-07-12 Thread Rick Root
B V wrote: Hmm. Interesting idea Calling JAVA objects. I should really get into that. Power fo Java with Coldfusion ease I always find it fun to do java integration like this =) I just blogged this whole thing too

Re: size limit for cffile?

2006-07-12 Thread B V
by line and performing some simple math (cnt = cnt + 1) The java method was CONSISTENTLY around 375ms on my server. I hit reload like 30 times and it was never below 350ms and never above 500ms, and almost always below 400ms. Using CFFILE, it was much more erratic... coming in as low

Re: size limit for cffile?

2006-07-12 Thread Matt Robertson
Rick what do you do if you can't run the whole operation from within a cfscript block? I need to do a *whole* bunch of stuff (like cfqueries that select, insert and update) inside of that while loop and I can't seem to get a non-cfscript analog of that loop working. I have to be missing

Re: size limit for cffile?

2006-07-12 Thread David
All the statements in that example have CF tag equivalents (CFScript syntax is much more similar to Java syntax, making it easier and clearer to port Java code examples). Assignment and method calls can be made into CFSet statements, and turn the while into cfloop, etc. - David On 7/12/06, Matt

Re: size limit for cffile?

2006-07-12 Thread Matt Robertson
On 7/12/06, David [EMAIL PROTECTED] wrote: All the statements in that example have CF tag equivalents (CFScript syntax Yes I know :-) I'm saying that I cannot get the conditional loop to work, and I cannot recall ever needing an isdefined in a non-cfscripted loop so I have nothing to fall back

Re: Getting Mime Type before CFFILE

2006-07-10 Thread rhymes with 'loud'
I know I can get all kinds of information about a file being uploaded after its run through CFFILE action=upload, but I'm trying to figure out how to identify the file type BEFORE CFFILE has run. Hi Howard. I recently created a simple document management system in which I needed to know

Getting Mime Type before CFFILE

2006-07-09 Thread Howard Owens
I know I can get all kinds of information about a file being uploaded after its run through CFFILE action=upload, but I'm trying to figure out how to identify the file type BEFORE CFFILE has run. I want to CFSWITCH on the mime type. Any one know how to determine the mime type? I tried

Re: Getting Mime Type before CFFILE

2006-07-09 Thread Rick Root
Howard Owens wrote: I know I can get all kinds of information about a file being uploaded after its run through CFFILE action=upload, but I'm trying to figure out how to identify the file type BEFORE CFFILE has run. Technically speaking, the file has already been uploaded. Perhaps you could

cffile sql and cfc's

2006-07-07 Thread Richard Cooper
Hi, I'm looking into creating a cfc for uploading files. I think this but should be fine, but I'd like to know is what people think would be the best method for adding/editing this info to dynamic table. i.e. is it OK to use: cfquery UPDATE #ARGUMENTS.tablename# and are there any extra

Re: cffile sql and cfc's

2006-07-07 Thread Tom Chiverton
On Friday 07 July 2006 11:55, Richard Cooper wrote: I'm looking into creating a cfc for uploading files. Generic answers to generic questions: cfqueryparam / Reactor don't refer to shared scopes (url/form) inside CFC -- Tom Chiverton This

Re: cffile sql and cfc's

2006-07-07 Thread Richard Cooper
I'm guessing either something like: cfquery UPDATE cfqueryparam value=#ARGUMENTS.tablename# cfsqltype=cf_sql_varchar / OR cfparam name=#ARGUMENTS.tablename# type=string cfquery UPDATE #ARGUMENTS.tablename Would these work and be safe?

Re: cffile sql and cfc's

2006-07-07 Thread Tom Chiverton
On Friday 07 July 2006 13:30, Richard Cooper wrote: cfquery UPDATE cfqueryparam value=#ARGUMENTS.tablename# cfsqltype=cf_sql_varchar / Normally you have one CFC for each table, and you can't use place holders for things like tablenames anyway. -- Tom Chiverton

Re: cffile sql and cfc's

2006-07-07 Thread Richard Cooper
Hi Tom, Do you think something like this would make it safe from SQL attack: cfset tableOK = REFindNoCase([^A-Za-z-_]+, ARGUMENT.tablename, 1,TRUE) cfif (tableOK.pos[1] NEQ 1) OR (tableOK.len[1] and len(ARGUMENT.tablename)) cfabort cfelse cfquery UPDATE #ARGUMENTS.tablename# . /cfif

Re: cffile sql and cfc's

2006-07-07 Thread Jim
You've still got issues e.g. arguments.tablename = sysobjects. Essentially, you're still hoping you've thought of everything that can be done. An idea might be: cfset allowedtables = file,image cffif not listfindnocase(allowedtables,arguments.table) cfabort /cfif This way, you are

Re: cffile sql and cfc's

2006-07-07 Thread Richard Cooper
Correction: cfif (tableOK.pos[1] NEQ 1) OR (tableOK.len[1] NEQ len(ARGUMENT.tablename)) ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered

Re: cffile sql and cfc's

2006-07-07 Thread Richard Cooper
Hi Jim, Thanks, I think that will work. I'll make an adjustment to get all tables dynamically which I'd guess would be OK cfquery name=GetTableNames datasource=#theDatabase# SELECT TABLE_NAME FROMInformation_Schema.Tables WHERE TABLE_TYPE = 'dbo' ORDER BY Table_Name /cfquery cfset

CFFILE uploads

2006-07-03 Thread B V
I know in uploading a file with CFFILe you specify the file field of the file to upload. Dows this mean that you can use file uploads with AJAX? Thanks, I'm hoping someone knows a way around this so I can do file uploads in AJAX . Thanks for your help and time

Re: CFFILE uploads

2006-07-03 Thread Jochem van Dieten
B V wrote: I know in uploading a file with CFFILe you specify the file field of the file to upload. Dows this mean that you can use file uploads with AJAX? Yes. Just tie an onblur to the control that submits the form to a page that returns a HTTP 204. Jochem

Re: CFFILE uploads

2006-07-03 Thread Rob Wilkerson
a file with CFFILe you specify the file field of the file to upload. Dows this mean that you can use file uploads with AJAX? Thanks, I'm hoping someone knows a way around this so I can do file uploads in AJAX . Thanks for your help and time

Re: CFFILE uploads

2006-07-03 Thread B V
a file with CFFILe you specify the file field of the file to upload. Dows this mean that you can use file uploads with AJAX? Thanks, I'm hoping someone knows a way around this so I can do file uploads in AJAX . Thanks for your help and time

Re: CFFILE uploads

2006-07-03 Thread B V
. On 7/3/06, B V [EMAIL PROTECTED] wrote: I know in uploading a file with CFFILe you specify the file field of the file to upload. Dows this mean that you can use file uploads with AJAX? Thanks, I'm hoping someone knows a way around this so I can do file uploads in AJAX . Thanks

RE: CFFILE uploads

2006-07-03 Thread Dan G. Switzer, II
Well, I guess you could do it the traditional way (e.g iframes) and set the Target to _top That's what they USED to do, but the main reason that I want this is so I can show a spinner thingy that says loading... please be patient You wouldn't even have to post the file to an IFRAME to do

CFFile copy, bigtime permissions issue..

2006-06-12 Thread J W
Man has this been driving me up a wall today Here is how it worked. CFFILE copy a file from webserver1 to webserver2 from webserver2. Just a plain windows workgroup, both running windows 2000 server, and mx6.1. Coldfusion running from the local account. \\srv-webserver1\whateverdirectory

RE: CFFile copy, bigtime permissions issue..

2006-06-12 Thread Ian Skinner
I am guessing permissions. Here is the kicker. Can browse to that file and have it come up in a text editor no problem, but I get this permissions error with cold fusion. I have tried every which way but sunday to try to get this right and still it gives me this error. I am about to rip my hair

RE: CFFile copy, bigtime permissions issue..

2006-06-12 Thread Paul Vernon
Change the user contest that CF starts up with so that it has permission to access the relevant systems. Paul ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243254 Archives:

Re: CFFile copy, bigtime permissions issue..

2006-06-12 Thread Terry L Schmitt
respond to cf-talk@houseoffusion.com To CF-Talk cf-talk@houseoffusion.com cc Subject CFFile copy, bigtime permissions issue.. Man has this been driving me up a wall today Here is how it worked. CFFILE copy a file from webserver1 to webserver2 from webserver2. Just a plain windows

Re: CFFile copy, bigtime permissions issue..

2006-06-12 Thread J W
Paul, Worked lilke a charm.. THanks... Jeff On 6/12/06, Paul Vernon [EMAIL PROTECTED] wrote: Change the user contest that CF starts up with so that it has permission to access the relevant systems. Paul ~| Message:

RE: Replacements/alternatives for CFFILE upload?

2006-05-18 Thread Dirk Sieber
Something is wrong. I'd look at the network. Maybe setting the latency a little lower or higher or whatever that is could fix something. Really, you shouldn't have a problem, I've used cffile over a 14.4 with MB files with no problems, other than slowness, as would be expected. Hmmm

Re: Replacements/alternatives for CFFILE upload?

2006-05-18 Thread Denny Valliant
See above. :) I've just done some testing of my own - FTP transfers are fine - approx 100 KB/sec sustained transfer rates to the server. However, document uploads still time out. Hrm. Well, you could try doing some cfhttp gets of some MB+ files and see if it's just the http protocol. Maybe

<    1   2   3   4   5   6   7   8   9   10   >