Re: cffile read 47 MB

2013-12-19 Thread richpaul7 .
maybe try using FileOpen, then FileRead myfile = FileOpen("c:\temp\test1.txt", "read"); x = FileRead(myfile, 100); On Thu, Dec 19, 2013 at 12:56 AM, Russ Michaels wrote: > > Do you need to read the whole file in or could you process it line by line > > Russ Michaels > www.michaels.me.uk > cf

Re: cffile read 47 MB

2013-12-19 Thread John M Bliss
I found a way to reduce the size of the XML, so this is no longer an issue (for me). Thanks for the advice! On Thu, Dec 19, 2013 at 3:56 AM, Russ Michaels wrote: > > Do you need to read the whole file in or could you process it line by line > > Russ Michaels > www.michaels.me.uk > cfmldevelope

Re: cffile read 47 MB

2013-12-19 Thread Russ Michaels
Do you need to read the whole file in or could you process it line by line Russ Michaels www.michaels.me.uk cfmldeveloper.com cflive.net cfsearch.com On 19 Dec 2013 06:54, "John M Bliss" wrote: > > The FileRead function seems to have the same problem as cffile. "Java heap > space" errors. Am I

Re: cffile read 47 MB

2013-12-18 Thread John M Bliss
The FileRead function seems to have the same problem as cffile. "Java heap space" errors. Am I doing something wrong? On Mon, Dec 9, 2013 at 5:34 PM, richpaul7 . wrote: > > use the FileRead function. it can handle large files and doesn't suck up > all the resources. forget trying to use CFFI

Re: cffile read 47 MB

2013-12-09 Thread Byron Mann
Provided with a disclaimer, as I asked a Java friend about this and he suggested something called Stax api for xml parsing. I did some quick research and found this article. It would be more Java than CF, but hey CF plays nice with that. http://www.javacodegeeks.com/2013/05/parsing-xml-using-dom

Re: cffile read 47 MB

2013-12-09 Thread richpaul7 .
use the FileRead function. it can handle large files and doesn't suck up all the resources. forget trying to use CFFILE for large files. http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_e-g_13.html On Mon, Dec 9, 2013 at 2:30 PM, Russ Michaels wrote: > > On 32bi

Re: cffile read 47 MB

2013-12-09 Thread Matt Quackenbush
Switch to 64-bit. :-) (Seriously. There's not much hope for memory-intensive operations on a 32-bit machine. You're limited to only being able to utilize something like 3.4GB of RAM, and that just ain't gonna cut it.) On Mon, Dec 9, 2013 at 5:25 PM, John M Bliss wrote: > > And for 32 bit? > O

Re: cffile read 47 MB

2013-12-09 Thread Russ Michaels
On 32bit you can only use around 1gb, it will fail to start if you assign too much. Russ Michaels www.michaels.me.uk cfmldeveloper.com cflive.net cfsearch.com On 9 Dec 2013 22:25, "John M Bliss" wrote: > > And for 32 bit? > On Dec 9, 2013 5:14 PM, "Steve 'Cutter' Blades" < > cold.fus...@cutters

Re: cffile read 47 MB

2013-12-09 Thread John M Bliss
And for 32 bit? On Dec 9, 2013 5:14 PM, "Steve 'Cutter' Blades" < cold.fus...@cutterscrossing.com> wrote: > > Looks like you're still using the default install values. On a 64-bit > system, I generally look at my overall RAM available, subtract 2GB for > the OS, then adjust my CF RAM availability

Re: cffile read 47 MB

2013-12-09 Thread Steve 'Cutter' Blades
Looks like you're still using the default install values. On a 64-bit system, I generally look at my overall RAM available, subtract 2GB for the OS, then adjust my CF RAM availability according to what's left, starting at 1 GB max, 256 min, then gradually move up half a gig as required. Findi

Re: cffile read 47 MB

2013-12-09 Thread Dave Watts
> Hi, I'm attempting to perform a cffile read on a 47 MB XML file. It's > failing but ACF10 is not throwing an error to the browser. Finally dug into > the logs and am seeing "Java heap space" errors. My JVM is configured as > such: > > Min JVM Heap Size - 256 > Max JVM Heap Size - 512 > JVM Argum

RE: CFFILE Question

2013-10-24 Thread Kevin Parker
I think a couple of responses you have are on the mark Steve - I had a similar problem only recently and it was because the file was getting deleted before the mail system could process it all. ++ Kevin Parker ++ -Original Message- From: Steve LaBadie [mailto:slaba...

Re: CFFILE Question

2013-10-23 Thread Brian Cain
Another alternative, if you are using CF 8 and above, is the content attribute of the cfmailparam tag. You can use this to attache the binary data itself as an attachment, that way you do not have to rely on a file existing on the server at the time the mail is sent. Read the file into a variab

Re: CFFILE Question

2013-10-23 Thread Russ Michaels
what you have to remember is that the mail gets added to the spool, so it may not get sent for a while depending how big the queue is, so you cannot just delete an attachment right away otherwise you are deleting it immediately even before the mail has even sent. You should setup a scheduled task

RE: CFFILE Question

2013-10-23 Thread Robert Harrison
I've had this same issue before. I believe the file was being deleted before the mail was fully processed. I think the solution I came up with was to place the file in a temporary directory then run a batch program to delete the files from that directory in the nightly run. Robert Harrison

Re: CFFILE Issue

2013-03-07 Thread Bruce Sorge
Hi Dave, On my dev machine it did not exist, but it worked, and it worked on the live server. The only real change I made was I created a new directory in the admin folder called pdf so that the new one's get generated there. I updated the permissions on my dev machine to read/write for the cf

Re: CFFILE Issue

2013-03-07 Thread Dave Watts
> I am having something strange going on today with my dev machine. I have an > app that writes a PDF: > > nameconflict="make unique"> > > It has been working great, but today when I ran it I was given an java.io > error that a folder did not exist. > Funny thing was that it was looking at the

Re: CFFILE Issue

2013-03-07 Thread Bruce Sorge
Yeah, I went the expand path route and pointed it to a pdf directory that was already accepting new vouchers and it works. I On Mar 7, 2013, at 4:05 PM, Bobby wrote: > > I'd probably start by trying one of these instead just to see if it made a > difference: > > ./pdf/voucher#user_id#.pdf >

Re: CFFILE Issue

2013-03-07 Thread Bobby
I'd probably start by trying one of these instead just to see if it made a difference: ./pdf/voucher#user_id#.pdf Or #expandPath('./pdf/')# & 'voucher#user_id#.pdf' On 3/7/13 3:41 PM, "Bruce Sorge" wrote: > >I am having something strange going on today with my dev machine. I have >an app t

Re: CFFile Question

2013-01-31 Thread Nathan Strutz
You can specify the local file name of the uploaded file as it is uploaded, through the cffile tag's destination="" attribute. It's like this: Good security dictates first that uploaded files should never go in the web root (even though I'm doing that here), and also that they do not keep the s

Re: CFFile Question

2013-01-31 Thread John M Bliss
http://cflib.org/udf/filterFilename On Thu, Jan 31, 2013 at 10:12 AM, Robert Harrison < rob...@austin-williams.com> wrote: > > Before I go nuts trying to write a fix for this, I'm hoping maybe someone > will know of a simple solution. Seems like it should be simple. > > I use CFFILE to allow us

RE: CFFILE and spaces in file name (Not Upload)

2013-01-16 Thread Rick Faircloth
What about renaming all the filenames with spaces to remove the spaces, then move them. Use cfdirectory to get a list of the filenames, then loop over the results and rename the files without spaces: Then use cfdirectory to get the new file list, loop over that list and use cffile action="move

Re: cffile mime type

2012-12-19 Thread Leigh
> also is there a way to determine the name of the file to be uploaded before > it > actually does the upload "fileUpload" gives a "neotmp    .tmp" which doesn't cffile action=upload is a bit of a misnomer. The file is already uploaded by the time your cfm script is processed. In reality cff

Re: cffile mime type

2012-12-19 Thread Michael van Leest
javascript checking is not very secure and specially file-extension checking. You can do some sort of javascript check to do a client side validation, but the cffile check is a little more thorough as it checks the file if it is the correct mime-type, even if you rename the extension if I'm not wr

Re: cffile mime type

2012-12-19 Thread Rob Voyle
Hi Folks Adding the "accept" doesn't really work as it triggers a CF error message I want to interupt the process before that . I don't know ajax or a way to access the file name before it gets converted to a tmp file Rob On 19 Dec 2012 at 16:16, Rob Voyle wrote: > > Hi Russ > > Thanks >

Re: cffile mime type

2012-12-19 Thread Rob Voyle
Hi Russ Thanks needed accept = "image/jpeg" not jpg Rob On 19 Dec 2012 at 23:57, Russ Michaels wrote: > > Just add that mime type to the accept list and it will work. > > You could extract the filename from the file field and send it to > the > server in advance using ajax. > > > > > Hi Fol

Re: cffile mime type

2012-12-19 Thread Russ Michaels
Just add that mime type to the accept list and it will work. You could extract the filename from the file field and send it to the server in advance using ajax. Regards Russ Michaels www.michaels.me.uk www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com - CF search engine O

RE: CFFILE to \\tsclient\c$\

2012-01-30 Thread Brook Davies
dyscott.id.au] > Sent: January-30-12 10:11 AM > To: cf-talk > Subject: Re: CFFILE to \\tsclient\c$\ > > > Sounds like you need a better debugging strategy then. > > > -- > Regards, > Andrew Scott > WebSite: http://www.andyscott.id.au/ > Google+: http://plus.go

Re: CFFILE to \\tsclient\c$\

2012-01-30 Thread Andrew Scott
: January-30-12 10:11 AM > To: cf-talk > Subject: Re: CFFILE to \\tsclient\c$\ > > > Sounds like you need a better debugging strategy then. > > > -- > Regards, > Andrew Scott > WebSite: http://www.andyscott.id.au/ > Google+: http://plus.google.com/1081931569

RE: CFFILE to \\tsclient\c$\

2012-01-30 Thread Brook Davies
I do? Why? -Original Message- From: Andrew Scott [mailto:andr...@andyscott.id.au] Sent: January-30-12 10:11 AM To: cf-talk Subject: Re: CFFILE to \\tsclient\c$\ Sounds like you need a better debugging strategy then. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au

Re: CFFILE to \\tsclient\c$\

2012-01-30 Thread Andrew Scott
Sounds like you need a better debugging strategy then. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Tue, Jan 31, 2012 at 5:01 AM, Brook Davies wrote: > > Yeah, that's an option, I could create a zip file.. really tho

RE: CFFILE to \\tsclient\c$\

2012-01-30 Thread Brook Davies
lugin my localhost as a list of available servers to copy the data to would have been nice, but its not a 100% requirement. Brook -Original Message- From: Andrew Scott [mailto:andr...@andyscott.id.au] Sent: January-30-12 9:31 AM To: cf-talk Subject: Re: CFFILE to \\tsclient\c$\ Why

Re: CFFILE to \\tsclient\c$\

2012-01-30 Thread Andrew Scott
iginal Message- > From: Andrew Scott [mailto:andr...@andyscott.id.au] > Sent: January-30-12 8:28 AM > To: cf-talk > Subject: Re: CFFILE to \\tsclient\c$\ > > > That's because you are doing it from the RDC, due to security reasons you > are in a session that is allow

RE: CFFILE to \\tsclient\c$\

2012-01-30 Thread Brook Davies
because of the file structure and files that are integrated with the form object... Brook -Original Message- From: Andrew Scott [mailto:andr...@andyscott.id.au] Sent: January-30-12 8:28 AM To: cf-talk Subject: Re: CFFILE to \\tsclient\c$\ That's because you are doing it from

Re: CFFILE to \\tsclient\c$\

2012-01-30 Thread Andrew Scott
That's because you are doing it from the RDC, due to security reasons you are in a session that is allowed this. But if you were to physically go to the machine / server you would not be able to see your machine this way. Now this is where I could be wrong, because my understanding is that if thi

RE: CFFILE to \\tsclient\c$\

2012-01-30 Thread Brook Davies
appen Brook -Original Message- From: Andrew Scott [mailto:andr...@andyscott.id.au] Sent: January-29-12 10:02 PM To: cf-talk Subject: Re: CFFILE to \\tsclient\c$\ Are you saying that you are using a Remote Desktop Client to connect to the server, and you want ColdFusion to be able to a

Re: CFFILE to \\tsclient\c$\

2012-01-29 Thread AJ Mercer
; > Brook > > > > -Original Message- > From: AJ Mercer [mailto:ajmer...@gmail.com] > Sent: January-29-12 5:25 PM > To: cf-talk > Subject: Re: CFFILE to \\tsclient\c$\ > > > you will need to run your CF services with a named account and that account

Re: CFFILE to \\tsclient\c$\

2012-01-29 Thread Andrew Scott
? > > Brook > > > > -Original Message- > From: AJ Mercer [mailto:ajmer...@gmail.com] > Sent: January-29-12 5:25 PM > To: cf-talk > Subject: Re: CFFILE to \\tsclient\c$\ > > > you will need to run your CF services with a named account and that account >

RE: CFFILE to \\tsclient\c$\

2012-01-29 Thread Brook Davies
Hi AJ, I am doing that - have you done this successfully? Brook -Original Message- From: AJ Mercer [mailto:ajmer...@gmail.com] Sent: January-29-12 5:25 PM To: cf-talk Subject: Re: CFFILE to \\tsclient\c$\ you will need to run your CF services with a named account and that account

Re: CFFILE to \\tsclient\c$\

2012-01-29 Thread AJ Mercer
you will need to run your CF services with a named account and that account will need access permissions to that share On 30 January 2012 09:17, Brook Davies wrote: > > Anybody ever tried to call CFFILE or CFDIRECTORY to a connected RDP > session? > I'm getting an access denied error even thou

Re: cffile action=write - permissions being set incorrectly (CF8.1)

2012-01-03 Thread Drew Nathanson
Wayne, You may need to check to see what the directory is set to. Also check the ownership of the directory. By default the Linux OS writes files as 644. You can set the default in the /etc/profile file using the umask command. Drew Nathanson Technical Synergy, Inc. >I am using cffile to wri

Re: CFFILE in CFWINDOW

2011-09-13 Thread Russ Michaels
there is a nice flash uploader at www.asfusion.com which might do what you need. On Tue, Sep 13, 2011 at 11:54 PM, Chad Baloga wrote: > > Have you tried cffileupload? I wrote some code a few weeks ago that has a > cffileupload in a cfwindow > On Sep 13, 2011 6:33 PM, "Scott Spurlock" wrote: >>

Re: CFFILE in CFWINDOW

2011-09-13 Thread Chad Baloga
Have you tried cffileupload? I wrote some code a few weeks ago that has a cffileupload in a cfwindow On Sep 13, 2011 6:33 PM, "Scott Spurlock" wrote: > > > In CF8, I'm trying to upload multiple files via a CFFORM in a CFWINDOW. I've googled enough to know it can't be done with just good ol' ColdF

Re: CFFILE / CFCATCH

2011-07-04 Thread Mack
On Fri, Jul 1, 2011 at 4:16 AM, morgan l wrote: > > Looks like you're the victim of scenario #2 in this KB article: > http://kb2.adobe.com/cps/181/tn_18171.html That article applies to CF5 and I doubt Jenny is running CF5. -- Mack ~~

RE: CFFILE / CFCATCH

2011-07-01 Thread Jenny Gavin-Wear
Many thanks for your reply, interesting article. I think this article would only apply if I was losing all session variables? >>-Original Message- >>From: morgan l [mailto:greyk...@gmail.com] >>Sent: 01 July 2011 02:16 >>To: cf-talk >>Subject: Re: CFF

Re: CFFILE / CFCATCH

2011-06-30 Thread morgan l
oblem is the session variable not being set inside the cfcatch. > > I'm sure I am catching the error for the cflocation to trigger. > > Jenny > > > >>-Original Message- > >>From: Michael Grant [mailto:mgr...@modus.bz] > >>Sent: 01 July 201

RE: CFFILE / CFCATCH

2011-06-30 Thread Jenny Gavin-Wear
t;Sent: 01 July 2011 00:04 >>To: cf-talk >>Subject: Re: CFFILE / CFCATCH >> >> >> >>+1. >> >> >> >>Also, you can drop the extraneous cfoutput around the cffile. >>Variables are automatically outputted if used as an attribute >>

Re: CFFILE / CFCATCH

2011-06-30 Thread Michael Grant
+1. Also, you can drop the extraneous cfoutput around the cffile. Variables are automatically outputted if used as an attribute value in a cftag and wrapped in #. Sent from my iPhone. On 2011-06-30, at 2:56 AM, "Andrew Scott" wrote: > > Jenny, I am going to assume that you have tried t

Re: CFFILE / CFCATCH

2011-06-30 Thread John M Bliss
-- > >>From: Andrew Scott [mailto:andr...@andyscott.id.au] > >>Sent: 30 June 2011 07:57 > >>To: cf-talk > >>Subject: RE: CFFILE / CFCATCH > >> > >> > >> > >>Jenny, I am going to assume that you have tried to cfdump and abort in &g

RE: CFFILE / CFCATCH

2011-06-30 Thread Andrew Scott
.co.uk] > Sent: Friday, 1 July 2011 12:11 AM > To: cf-talk > Subject: RE: CFFILE / CFCATCH > > > Hi John, > > Thanks for the reply. > > Yes, I dumped the results of the cfcatch. > > Strangely, the cflocation is working, but the session.sysmessage is not >

RE: CFFILE / CFCATCH

2011-06-30 Thread Jenny Gavin-Wear
'd be very interested to read it, please. Thanks, Jenny >>-Original Message- >>From: Andrew Scott [mailto:andr...@andyscott.id.au] >>Sent: 30 June 2011 07:57 >>To: cf-talk >>Subject: RE: CFFILE / CFCATCH >> >> >> >>Jenny, I a

Re: CFFILE / CFCATCH

2011-06-30 Thread John M Bliss
Unless something has changed in recent versions of CF, in addition to cffile's accept arg, after your you should always check extension of file saved to disk and, if illegal, immediately delete file. Reason: those mimetypes come from end-user's browser and can be wrong/spoofed/unpredictable (i.e.

RE: CFFILE / CFCATCH

2011-06-29 Thread Andrew Scott
Jenny, I am going to assume that you have tried to cfdump and abort in the cfcatch to see what the message contains. Failing that I do know that some of these messages have hidden characters and will not match even if you try. I don't have the link handy at the moment, but I did write a blog abou

Re: cffile append too slow

2011-06-20 Thread Richard White
wow, filewriteline reduced it from 800ms to 0ms! impressive, thanks > If you're using CF8 or CF9 you have the newer File functions. They > may well perform better than CFFILE. > > On Mon, Jun 20, 2011 at 11:39 AM, Richard White > wrote: > > > > Hi, > > > > We have noticed that simply writin

Re: cffile append too slow

2011-06-20 Thread Jeffrey Battershall
If you're using CF8 or CF9 you have the newer File functions. They may well perform better than CFFILE. On Mon, Jun 20, 2011 at 11:39 AM, Richard White wrote: > > Hi, > > We have noticed that simply writing 1 line to a text file using cffile append > takes approx 800ms. is there a quicker alte

Re: cffile within cflayout doesn't work?

2011-01-31 Thread Jake Churchill
You can't upload a file via an ajax window. It's a browsr restriction as far as I know. The trick is to embed a hidden iframe and do the file upload there. Also, there's a handy jquery plugin which takes care of this: http://jquery.malsup.com/form/ -Jake Sent from my Droid On Jan 31, 2011 8

Re: cffile within cflayout doesn't work?

2011-01-31 Thread Raymond Camden
When you have a form inside a cflayout, CF auto translates it to a Ajax based form. You can't (*) to file uploads with Ajax-based forms. * There are - of course - work arounds. On Mon, Jan 31, 2011 at 10:01 AM, Tim Do wrote: > > Has anyone run into an issue when uploading a file within a cflay

Re: CFFILE ERROR

2010-11-10 Thread Monique Boea
I found it: maxContentID is the name of the query "#ExpandPath('/contentFiles/#*maxContentID*#_#language#.cfm')#" This works "#ExpandPath('/contentFiles/#*maxContentID**.contentID*#_#language#.cfm')#" On Tue, Nov 9, 2010 at 8:47 PM, Dave Watts wrote: > > > I have a file that is creating

Re: CFFILE ERROR

2010-11-09 Thread Monique Boea
Ok thanks Dave, On Tue, Nov 9, 2010 at 8:47 PM, Dave Watts wrote: > > > I have a file that is creating a CF template using the following code: > > > > > > > action = "write" > >*file = > > "#ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')#" * > >

Re: CFFILE ERROR

2010-11-09 Thread Dave Watts
> I have a file that is creating a CF template using the following code: > >     >                        action = "write" >            *file = > "#ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')#" * >            output = "#Evaluate( "#language#TEXT" )#" >            nameconflict="overwr

Re: CFFILE move is copying

2010-01-16 Thread Scott Brady
Ben Forta or Adam Lehman. > > ~Brad > > > ---- Original Message > Subject: Re: CFFILE move is copying > From: Scott Brady > Date: Fri, January 15, 2010 7:36 pm > To: cf-talk > > > Well, I tried to, but every time I submit the form (using FireFox on > Mac OS X), it

RE: CFFILE move is copying

2010-01-15 Thread brad
to try and ping Ben Forta or Adam Lehman. ~Brad Original Message Subject: Re: CFFILE move is copying From: Scott Brady Date: Fri, January 15, 2010 7:36 pm To: cf-talk Well, I tried to, but every time I submit the form (using FireFox on Mac OS X), it says I haven't fil

Re: CFFILE move is copying

2010-01-15 Thread Scott Brady
> Either way, you should write up all the details and some sample code and > submit it to Adobe. > > http://www.adobe.com/go/wish > > ~Brad > > Original Message > Subject: Re: CFFILE move is copying > From: Scott Brady > Date: Fri, January 15, 2010

RE: CFFILE move is copying

2010-01-15 Thread brad
Either way, you should write up all the details and some sample code and submit it to Adobe. http://www.adobe.com/go/wish ~Brad Original Message Subject: Re: CFFILE move is copying From: Scott Brady Date: Fri, January 15, 2010 5:18 am To: cf-talk Actually, I found a way

Re: CFFILE move is copying

2010-01-15 Thread Scott Brady
Actually, I found a way around it. I'm using the underlying Java file reader (which is what I assume uses) that also includes a "close()" method that fixes it. I would think would do that automatically once you exit the loop (whether upon the end of the file or prematurely), but maybe there ar

Re: CFFILE move is copying

2010-01-14 Thread denstar
What about firing off another thread to delete it after X amount of time? Or maybe not deleting it right away, and instead adding the file to a list, and then moving/deleting the list at the end (maybe with a sleep() first?) -- Dogs and philosophers do the greatest good and get the fewest rewar

Re: CFFILE move is copying

2010-01-14 Thread Dave Watts
> Basically, if I'm writing to the "badFiles" location, I have almost > invariably broken out of a loop before > reaching the end of the file (using ).  Is it possible that > ColdFusion still has a lock on the file and, therefore, can't delete > it?  (I'm thinking this may be the case, because ri

Re: CFFILE move is copying

2010-01-14 Thread Scott Brady
uld check permissions too.  CF might have permissions to write and >>> read, but not delete. >>> >>> If this was the case though, I would expect there to be an error. >>> >>> As a debugging measure, you could dump out the contents of a cfdirectory >>

Re: CFFILE move is copying

2010-01-13 Thread Scott Brady
ore you >> are looking.  Also, trying a straight-up delete with cffile will show >> you if it is a delete permissions error. >> >> ~Brad >> >> Original Message >> Subject: Re: CFFILE move is copying >> From: Scott Brady >> Date: T

Re: CFFILE move is copying

2010-01-12 Thread Scott Brady
lete permissions error. > > ~Brad > > Original Message > Subject: Re: CFFILE move is copying > From: Scott Brady > Date: Tue, January 12, 2010 3:46 pm > To: cf-talk > > > That's probably it -- though, I guess I'd expect an error to result. I

RE: CFFILE move is copying

2010-01-12 Thread brad
possible some other process is writing the file back in a minute later before you are looking. Also, trying a straight-up delete with cffile will show you if it is a delete permissions error. ~Brad Original Message Subject: Re: CFFILE move is copying From: Scott Brady Date: Tue

Re: CFFILE move is copying

2010-01-12 Thread Scott Brady
That's probably it -- though, I guess I'd expect an error to result. I guess I can try deleting after the move -- not a solution, but it might tell me if the file is locked. (It's just a text file, so not much should be locking it) Scott On Tue, Jan 12, 2010 at 2:24 PM, Dave Watts wrote: > > W

Re: CFFILE move is copying

2010-01-12 Thread Dave Watts
> I'm using ColdFusion 9 on Windows with Apache 2 (in case that matters) > and am trying to do a basic cffile action="move" but it appears to be > copying rather than moving (i.e., the file is now in both the source > and destination folders).  Does anyone know what could cause that? > > Here's my

RE: cffile action="delete" problems

2009-09-25 Thread Ian Vaughan
Thanks Will, that's great -Original Message- From: Will Swain [mailto:w...@hothorse.com] Sent: 25 September 2009 10:08 To: cf-talk Subject: RE: cffile action="delete" problems Your query needs a name - so you can refer to it later. SELECT * FROM documnents WHERE doci

RE: cffile action="delete" problems

2009-09-25 Thread Will Swain
Your query needs a name - so you can refer to it later. SELECT * FROM documnents WHERE docid = Assuming the filename is docname, and your file lives in F:\downloads\: -Original Message- From: Ian Vaughan [mailto:i.vaug...@neath-porttalbot.gov.uk] Sent: 25 September 2009 10:00 To:

RE: CFFILE UPLOAD / Embedding

2009-09-16 Thread Jenny Gavin-Wear
http://www.microsoft.com/Windows/MediaPlayer/"; WIDTH="319" HEIGHT="284" ShowControls="1" ShowStatusBar="1" ShowDisplay="0" autostart="1" playcount="1"> Thanks in advance, Jenny -Original Message- From: Will Swa

RE: CFFILE UPLOAD

2009-09-11 Thread Will Swain
Sorry - coming to this late. Have you tried with a different mp3 file? Is it all mp3 files that don't work, or just this one? w -Original Message- From: Jenny Gavin-Wear [mailto:jenn...@fasttrackonline.co.uk] Sent: 11 September 2009 04:49 To: cf-talk Subject: RE: CFFILE UPLOAD

RE: CFFILE UPLOAD

2009-09-10 Thread Jenny Gavin-Wear
The MP3 I am uploading is smaller than the WMVs that upload fine .. -Original Message- From: Maureen [mailto:mamamaur...@gmail.com] Sent: 06 September 2009 07:37 To: cf-talk Subject: Re: CFFILE UPLOAD Does it exceed max file size for uploads on the server? On Sat, Sep 5, 2009 at 9:50

Re: CFFILE UPLOAD

2009-09-05 Thread Maureen
Does it exceed max file size for uploads on the server? On Sat, Sep 5, 2009 at 9:50 PM, Andrew Grosset wrote: > > according to this list there are 4 possible mime types for mp3 > > http://www.webmaster-toolkit.com/mime-types.shtml > >>2boogie.mp3 >> >>Most file formats work fine (doc, pfd, wmv,

Re: CFFILE UPLOAD

2009-09-05 Thread Andrew Grosset
according to this list there are 4 possible mime types for mp3 http://www.webmaster-toolkit.com/mime-types.shtml >2boogie.mp3 > >Most file formats work fine (doc, pfd, wmv, for example) and it seems it's >just music files like mp3 and wma that have a problem. > >Could it be something to do with

RE: CFFILE UPLOAD

2009-09-05 Thread Jenny Gavin-Wear
56 To: cf-talk Subject: Re: CFFILE UPLOAD what's the file name? Seems like I had this one time and the issue was the user was uploading images named like: bill's big day.jpg And the ' was terminated it and giving that error. >I'm using cffile to upload .mp3 files (a

Re: CFFILE UPLOAD

2009-09-04 Thread Dave l
what's the file name? Seems like I had this one time and the issue was the user was uploading images named like: bill's big day.jpg And the ' was terminated it and giving that error. >I'm using cffile to upload .mp3 files (among others). > >An error is thrown: >String index out of range: -1

RE: CFFILE UPLOAD

2009-09-03 Thread Jenny Gavin-Wear
the weird thing is, the file actually uploads, but still the error ... -Original Message- From: Jenny Gavin-Wear [mailto:jenn...@fasttrackonline.co.uk] Sent: 03 September 2009 14:58 To: cf-talk Subject: CFFILE UPLOAD I'm using cffile to upload .mp3 files (among others). An error is th

RE: cffile and illegal names

2009-06-08 Thread Chad Gray
Nevermind... I didn't realize you could put your own file name in the destination attribute. I thought it would only take the path to save the image. So I used createUUID() to make the file name at the end of the folder path. > -Original Message- > From: Chad Gray [mailto:cg...@car

Re: cffile action="write" file as XML. Put spacing in lines, but resave file on mac spaces disappear

2009-04-16 Thread Joel Black
Great idea, but could not get a replace() to work. There is nother there to replace? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;20717

Re: cffile action="write" file as XML. Put spacing in lines, but resave file on mac spaces disappear

2009-04-16 Thread Joel Black
Thanks for the suggestion. I tried it, but got the same outcome. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Arch

Re: cffile action="write" file as XML. Put spacing in lines, but resave file on mac spaces disappear

2009-04-16 Thread Joel Black
Both very good solutions, but neither is working. I tried doing a replace() while processing, but there is nother there to replace. I tried \r\n, \r. Didnt get an error, but got the same outcome. I also tried supressing white space, with processing directive, same outcome. The generated XM

Re: cffile action="write" file as XML. Put spacing in lines, but resave file on mac spaces disappear

2009-04-16 Thread Rob Parkhill
Try wrapping the content in a Rob On Thu, Apr 16, 2009 at 12:56 PM, Ben Nadel wrote: > > This might be a line-delimiter problem. I believe windows uses both the > return and newline characters: > > \r\n > > Linux based machines, on the other hand, I think only use one of the > them...\n maybe?

Re: cffile action="write" file as XML. Put spacing in lines, but resave file on mac spaces disappear

2009-04-16 Thread Ben Nadel
This might be a line-delimiter problem. I believe windows uses both the return and newline characters: \r\n Linux based machines, on the other hand, I think only use one of the them...\n maybe? Not sure. -- Ben Nadel Adobe Community Expert Adobe Certified Advanced ColdFusion Developer Manager

RE: cffile name of uploaded file

2009-03-20 Thread William
Goto http://wsoncf.blogspot.com Uploading blog -Original Message- From: Nupur Gupta Sent: Friday, March 20, 2009 1:11 PM To: cf-talk Subject: cffile name of uploaded file HI, I am using cffile to upload a file to the server. The user picks a file, clicks a button, and the file is uplo

Re: cffile name of uploaded file

2009-03-20 Thread Roger Austin
Nupur Gupta wrote: > HI, > I am using cffile to upload a file to the server. The user picks a file, > clicks a button, and the file is uploaded. However, how can I find the name > of the file that he chose? > Thanks cffile.clientfile

RE: cffile name of uploaded file

2009-03-20 Thread Robert Harrison
#clientfile# - File name of original file #serverfile# - File as named on server Robert B. Harrison Director of Interactive Services Austin & Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising c

Re: cffile name of uploaded file

2009-03-20 Thread John M Bliss
http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_f_10.html#3540091 Parameter - Description > attemptedServerFile - Initial name ColdFusion used when attempting to save > a file > serverFile - Filename of the file saved on the server > On Fri, Mar 20, 2009 at 3:11 PM, Nupur Gupta wrote: > >

Re: cffile - cfftp questions..

2009-03-13 Thread Gerald Guido
I used to use the Jftp applet back when the uploaded file went into memory (back in '04-05). http://www.somethingjava.com/ I had a guy that wanted to upload his whole set or show/concert as one file and it was hell on the server and I had a lot of failed uploads. I remember seeing some other FOS

Re: cffile - cfftp questions..

2009-03-13 Thread Justin Scott
Les Mizzell wrote: > Could performance be improved by used cfftp along with cffile, or is > there really not much of a difference? Or is there a better ?best > practice" way for large files I'm not looking at yet? CFFTP is used for ColdFusion to talk to FTP servers, not to "create" an ftp serv

Re: cffile - cfftp questions..

2009-03-13 Thread Brad Wood
I'm not quite sure what you're suggesting, but cffile must be used to upload files submitted from the client in a form post as far as I know. cfhttp is for sending http request from your coldfusion server to another machine. I don't really see how you could accomplish a file upload from a cli

Re: cffile in a CFC

2009-03-07 Thread Gerald Guido
This function will upload a file. http://coz.pastebin.com/f4eb4bbaa The full CFC is on my interblog if you are interested. http://www.myinternetisbroken.com/files/FileUpload.cfc.zip Here is the basic usage for the cfc uppload = application.FileUpload.upload("form.My

Re: cffile in a CFC

2009-03-07 Thread Will Tomlinson
> I have a user submitting an image via a form. > > I would like to make a function in my cfc to upload the file. What do > I put in the fileField attribute of CFFile? > > Arguments.TitleImage or Form.TitleImage? > > What type do I set for the cfargument? String? Binary? > http://corfi

Re: cffile in a CFC

2009-03-07 Thread Dominic Watson
If the name of the form field is 'TitleImage', you would just put 'TitleImage'. You may wish to pass the form field name as the argument; otherwise no argument would be required. It feels kinda nasty but if you are to do cffile uploads inside a function there's little choice. HTH, Dominic ~

Re: CFFILE - multiple uploads

2009-02-17 Thread Fawzi Amadu
>Check out http://uploadformcfc.riaforge.org > I have checked out this tag, but due to lack of documentation it has not been of much help. I wrote to the creator but he hasn't replied. So I still need to understand how to code for saving multiple file information into a database. TIA ~~~

  1   2   3   4   5   6   7   8   9   10   >