RE: CF8 Developer Edition, CFDOCUMENT, and watermark.png...argh!
Well the only thing I can say to this thread. That is your fault (not you directly) for replacing files in the core Coldfusion code application, mark this as a gentle reminder to everyone else. Play with fire and expect to be burnt.. Sorry couldn't resist. -- Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 9015 8628 Mobile: 0404 998 273 ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311702 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: File upload 250 MB Discussion
You do realize of course that this is a Coldfusion mailing list and not a Struts and/or JSP mailing list? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311703 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Weird Time Issue Between Linux and Windows Server
Randy Johnson - CFConcepts wrote: The one linux server Is on Central Time Zone, The other linux server is on pacific time zone. The windows server is on Eastern Time Zone. you've fallen into timezone hell: http://www.sustainablegis.com/blog/cfg11n/index.cfm?mode=entryentry=77223B6A-20ED-7DEE-2AB7FBB1F37ABD77 this line converts your datetimes to the *local* tz (cf sees all datetimes as server tz datetimes): cfset theDate=DateAdd(s,i/1000,DateConvert(utc2Local, January 1 1970 00:00)) so yup you can expect different datetimes across different tz as you've changed the start date per tz. if you want the same tz for all your boxes you either have to set them all to the same tz or cast the resulting datetimes to whatever tz you need. best recommendation is to set all the server's to UTC cast the tz as needed, see: http://www.sustainablegis.com/projects/tz/testTZCFC.cfm for a CFC that might help. that said i ran your code on a win2003 box (cf8/JDK 1.6) got very different datetimes after setting it to the tz you indicated above: Central Standard Time {ts '2008-09-03 10:00:00'} {ts '2008-09-10 10:00:00'} {ts '2008-09-17 10:00:00'} {ts '2008-09-24 10:00:00'} Pacific Standard Time {ts '2008-09-03 06:00:00'} {ts '2008-09-10 06:00:00'} {ts '2008-09-17 06:00:00'} {ts '2008-09-24 06:00:00'} so maybe you should double check your server's tz--last week or so i helped someone who thought they had set their tz to British Summer Time (BST) but it turned out the JRE thought that BST meant Bangladesh Standard Time ;-) this snippet should help: thisTZ=createObject(java,java.util.TimeZone).getDefault(); writeoutput(#thisTZ.getDisplayName()# (#thisTZ.getID()#)); ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311704 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Verity Collection Unable to create temporary file
I have a verity search faciaility on one of my sites, and we recently moved the site to a new server box.Now, when i go to refresh the indexes I get the following error: Unable to create temporary file And the error is pointing to the line containint the CFINDEX tag . I guess this is something to do with the permissions, but i'm not sure what is needed - I had no such problem setting the search up on my dev machine, nor on the previous box. I managed to use CFINDEX to delete the collections, and to create them again programmatically, but this error occurs when i go to populate the collections with data. What do i need to do ?(or perhaps i should ask, what do i need to ask my Sysadmin to do?) -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311705 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8 Developer Edition, CFDOCUMENT, and watermark.png...argh!
Uh, I didn't replace or modify in any way the files in the core coldfusion application code. Thanks for playing, though, really. You're a winner no matter what. Pete On Thu, Aug 28, 2008 at 3:15 AM, Andrew Scott [EMAIL PROTECTED]wrote: Well the only thing I can say to this thread. That is your fault (not you directly) for replacing files in the core Coldfusion code application, mark this as a gentle reminder to everyone else. Play with fire and expect to be burnt.. Sorry couldn't resist. -- Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 9015 8628 Mobile: 0404 998 273 ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311706 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfcontent downloads and IE
Hi, Did you manage to figure up this issue? I use IE7 and response.setContentType(application/vnd.ms-excel); response.setHeader(Content-disposition,attachment; filename=Book.xls); Like you I get a yellow bar To help protect your security, IE has blocked this site from downloading files... but when I click the yellow bar and select Download File, nothing happens Even in second attemp THANKS Tali Hello, I am trying to use cfcontent to make an excel sheet and in Internet Explorer 7 the yellow bar at the top does it's thing and says To help protect your security, IE has blocked this site from downloading files blah blah blah. I click the yellow bar and select Download File, but nothing happens. No file is downloaded. If I don't refresh the page and try it again I do get the option to save or open the file and everything looks great. Why doesn't the first attempt to download work? Here is my code: cfheader name=Content-Disposition value=inline; filename=SKUs. xls cfcontent type=application/ms-excel ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311707 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
excel downloads and IE7
Hi, I saw this issue was mentioned before, but there was not answered I use IE7 and trying to create and download excel file response.setContentType(application/vnd.ms-excel); response.setHeader(Content-disposition,attachment; filename=Book.xls); I get a yellow bar To help protect your security, IE has blocked this site from downloading files... but when I click the yellow bar and select Download File, nothing happens Even second attempt does not work Any ideas? Tali ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311708 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfmail woes
Hi folks, I've run into an issue I cannot seem to resolve with sending mail via cfmail here. I'm trying to send a barebones test email and keep running into the following after initially setting the mail server to 127.0.0.1 and then setting it to the actual IP From the cf mail log- Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] And of course it drops it into the undeliverable folder never to be seen again. From the exception log- Error,scheduler-2,08/27/08,13:39:08,,Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] This is on a windows box running: IIS Windows 2003 Standard ColdFusion MX 7,0,2,142559 Standard This has baffled me since I have the same setup on a 2nd box that has no issue with sending emails and hasn't had for the past year or so. Any help or light to be shed would be greatly appreciated. Bob ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311709 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfmail woes
Have you confirmed that the e-mail contains a proper e-mail address in the TO property? That is what I see in the error message. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311710 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfmail woes
Error,scheduler-2,08/27/08,13:39:08,,Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] It sounds as though your SMTP server isn't configured to relay messages for your ColdFusion server. If this SMTP relay is ONLY used by your web server, then I would set the connection controls to only allow connections from localhost (127.0.0.1), and then set the relay restrictions to allow all (since only the localhost can connect, relay control becomes a moot point). These settings are under the access tab in the SMTP properties in the IIS configuration. -Justin Scott ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311711 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfmail woes
Justin Scott wrote: Error,scheduler-2,08/27/08,13:39:08,,Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] It sounds as though your SMTP server isn't configured to relay messages for your ColdFusion server. If this SMTP relay is ONLY used by your web server, then I would set the connection controls to only allow connections from localhost (127.0.0.1), and then set the relay Oh, and this assumes your SMTP server is on the same system as ColdFusion. If that is not the case, put the IP address of your ColdFusion server into the connection list as well. -Justin Scott ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311712 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Text to image for Non CSS font resolution
C Wrote: Not to rule out other options, but try setting the background color when the image object is created: cfset myImage=ImageNew(,500,20, rgb, ff) Though, I do not think you want to create the images every time the page loads. That helps, but I still need help. It did do the trick, but is it the best solution? I am not going to create it each time. Just each time they need new text. I will build an image inventory and check to see if the FileExists. I hate the way this will work, but I can't talk them into doing it any other way. I am using a combination of sIFR and this. (I got the sIFR working late last night). I don't like any of it, but an Agency created the design using ScalaSans everywhere, even with me explaining how text resolves. And the site is completely dynamic. Has anyone else run into this and found a better solution. If text comes out of a database dynamically and it must be a non-universal font, is there any other solution other than Text to Image or sIFR? Thanks, ~David Moore _ Talk to your Yahoo! Friends via Windows Live Messenger. Find out how. http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008 ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311713 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfmail woes
Yes sir ;) cfmail to=[EMAIL PROTECTED] from=[EMAIL PROTECTED] subject=testing email from domint Hello World! /cfmail -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 9:58 AM To: CF-Talk Subject: Re: cfmail woes Have you confirmed that the e-mail contains a proper e-mail address in the TO property? That is what I see in the error message. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311714 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfmail woes
That took care of it! Thanks Justin it's working like a charm, off to storm the castle now ;) Bob -Original Message- From: Justin Scott [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 9:59 AM To: CF-Talk Subject: Re: cfmail woes Error,scheduler-2,08/27/08,13:39:08,,Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] It sounds as though your SMTP server isn't configured to relay messages for your ColdFusion server. If this SMTP relay is ONLY used by your web server, then I would set the connection controls to only allow connections from localhost (127.0.0.1), and then set the relay restrictions to allow all (since only the localhost can connect, relay control becomes a moot point). These settings are under the access tab in the SMTP properties in the IIS configuration. -Justin Scott ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311715 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
xmlTransform() and an unnecessary xml declaration.
Is there a way to stop this code from producing an unnecessary XML declaration. When I run the following code it produces an XML declaration after the body tag. body ?xml version=1.0 encoding=UTF-8? Is there someway to control this, or do I just need to do some string parsing after the transformation? cfsavecontent variable=displayXSL xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=table/thead / xsl:template match=table/tr div strongxsl:value-of select=td[1]//strong /div /xsl:template /xsl:stylesheet /cfsavecontent /cfsilent!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleXSLT Fun/title /head body cfoutput#xmlTransform(skillsXML,displayXSL)#/cfoutput /body /html ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311716 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CF8 Developer Edition, CFDOCUMENT, and watermark.png...argh!
LoL, Sorry I did try not to imply you did, it was more a case of what could happen if you do. And the dangers it poses. -- Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 9015 8628 Mobile: 0404 998 273 -Original Message- From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED] Sent: Thursday, 28 August 2008 9:20 PM To: CF-Talk Subject: Re: CF8 Developer Edition, CFDOCUMENT, and watermark.png...argh! Uh, I didn't replace or modify in any way the files in the core coldfusion application code. Thanks for playing, though, really. You're a winner no matter what. Pete ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311717 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CF8 PDF Fonts
Client wants to use the font Garamond three in CF8 generated PDF's The font is available in the CF8 administrator Font Family: garamond 3 Font Face: Garamond Three Postscript Name: GaramondThree Font Type: TRUETYPE Usable in: PDF/Flashpaper CFDOCUMENT format=PDF fontembed=selective mimetype=text/html localUrl=yes filename=full/path/to/source/file.htm pageType=A4 This is in the style sheet ..despatchfmB { font-family : garamond 3, serif; font-size : 14px; color : black;} and appears correct in the generated html source used in making the pdf - on the server, so the font is installed and exists Etc. However, it is NOT appearing in the PDF. Analysis in Acrobat Professional says the font is TimesNewRoman so somewhere the font is being substituted for a default serif font while the PDF is being generated. Anyone any ideas how I use my specified font? Thanks Richard ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311718 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8 PDF Fonts
try font-family: Garamond Three, serif Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Richard Meredith-Hardy wrote: Client wants to use the font Garamond three in CF8 generated PDF's The font is available in the CF8 administrator Font Family: garamond 3 Font Face: Garamond Three Postscript Name: GaramondThree Font Type: TRUETYPE Usable in: PDF/Flashpaper CFDOCUMENT format=PDF fontembed=selective mimetype=text/html localUrl=yes filename=full/path/to/source/file.htm pageType=A4 This is in the style sheet ..despatchfmB { font-family : garamond 3, serif; font-size : 14px; color : black;} and appears correct in the generated html source used in making the pdf - on the server, so the font is installed and exists Etc. However, it is NOT appearing in the PDF. Analysis in Acrobat Professional says the font is TimesNewRoman so somewhere the font is being substituted for a default serif font while the PDF is being generated. Anyone any ideas how I use my specified font? Thanks Richard ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311719 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CF8 PDF Fonts
2 things to look at... 1) the space might be an issue 'garamond 3' might work. 2)it might be a license issue regarding distribution of the font.. But I have no idea how that works. 3) Is the font installed on the machine, I am not sure if by default the font is embedded into the PDF or not. -- Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 9015 8628 Mobile: 0404 998 273 -Original Message- From: Richard Meredith-Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, 29 August 2008 1:11 AM To: CF-Talk Subject: CF8 PDF Fonts Client wants to use the font Garamond three in CF8 generated PDF's The font is available in the CF8 administrator Font Family: garamond 3 Font Face: Garamond Three Postscript Name: GaramondThree Font Type: TRUETYPE Usable in: PDF/Flashpaper CFDOCUMENT format=PDF fontembed=selective mimetype=text/html localUrl=yes filename=full/path/to/source/file.htm pageType=A4 This is in the style sheet ...despatchfmB { font-family : garamond 3, serif; font-size : 14px; color : black;} and appears correct in the generated html source used in making the pdf - on the server, so the font is installed and exists Etc. However, it is NOT appearing in the PDF. Analysis in Acrobat Professional says the font is TimesNewRoman so somewhere the font is being substituted for a default serif font while the PDF is being generated. Anyone any ideas how I use my specified font? Thanks Richard ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311720 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Text to image for Non CSS font resolution
what i did a while ago (before I discovered sIFR) a client was: - create a separate image for each letter and punctuation mark in the font they wanted to use, naming each image file according to what is in it (A.png, B.png, ect). NOTE: the font they used was uppercase-only, so i was spared creating upper AND lowercase images... NOTE 2: some punctuation marks can't be used in filenames on a windows comp, so had to rename them to some other character which were unlikely to be used in a text string, like $ for space, [ for ., etc. - in the text string replace any chars that are not allowed in file names with the ones i used instead. - loop through the text string letter-by-letter outputting images instead. worked pretty well: www.mekongspirit.com - all page titles are done this way i suspect it may not be too great for SEO purposes, though... hth Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ David Moore, Jr. wrote: C Wrote: Not to rule out other options, but try setting the background color when the image object is created: cfset myImage=ImageNew(,500,20, rgb, ff) Though, I do not think you want to create the images every time the page loads. That helps, but I still need help. It did do the trick, but is it the best solution? I am not going to create it each time. Just each time they need new text. I will build an image inventory and check to see if the FileExists. I hate the way this will work, but I can't talk them into doing it any other way. I am using a combination of sIFR and this. (I got the sIFR working late last night). I don't like any of it, but an Agency created the design using ScalaSans everywhere, even with me explaining how text resolves. And the site is completely dynamic. Has anyone else run into this and found a better solution. If text comes out of a database dynamically and it must be a non-universal font, is there any other solution other than Text to Image or sIFR? Thanks, ~David Moore ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311721 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: putting in cffile
THANK YOU! That worked perfectly! I need to write a .csv file with all data encased in quotation marks, the problem is that cffile output uses double quotes to define the data to input. How can I get around this?? Geez, i know it's got to be something easy... You can either double up on the double quotes in the string, or wrap the contents in single quotes instead of double quotes. For example... cffile contents=This is some awesome text with quotes! cffile contents='This is some awesome text with quotes!' Another way would be to use CFSAVECONTENT... cfsavecontent variable=theOutputThis is some awesome text with quotes!/cfsavecontent cffile contents=#theOutput# -Justin Scott ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311722 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Pre-filling FileField Values
Is there some way to pre-fill a filefield value? I'm trying this: cfloop from=1 to=#filenamelist.recordcount# index=i cfoutput#i#/cfoutputbr cfoutputfilenameList.recordcount = #filenameList.recordcount#/cfoutputbr input name=cfoutput#i#/cfoutput type=file value=cfoutput#filenameList.name[i]#/cfoutputbr /cfloop And it gives me the correctly rendered HTML: input name=1 type=file value=E:\UploadDirectory\2008_0819_sav_mlxchange_image.jpgbr input name=2 type=file value=E:\UploadDirectory\2008_0819_sav_mlxchange_image_data_and_photo_download.jpgbr input name=3 type=file value=E:\UploadDirectory\2008_0819_sav_mlxchange_image_data_download.jpgbr But when the filefields are displayed in the browser, the filefields are empty. Is there some way to get the E:\UploadDirectory\2008_0819_sav_mlxchange_image.jpg to show up in the dynamically created filefields? Thanks, Rick ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311723 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Pre-filling FileField Values
No. It's a security hole. Imagine being able to pre-fill it with C:\my documents\sensitive file.doc and then hiding the form field so they never even knew about it. You could upload any file you wanted from your user and all they would need to do was submit the form. Well, heck, you can automatically submit forms with JavaScript anyway... ~Brad - Original Message - From: Rick Faircloth [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Thursday, August 28, 2008 12:28 PM Subject: Pre-filling FileField Values Is there some way to pre-fill a filefield value? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311724 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pre-filling FileField Values
Is there some way to pre-fill a filefield value? Forget it. Imagine it was possible, then a page could get directly some very sensitive files like your system files, or address book... ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311725 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pre-filling FileField Values
and all they would need to do was submit the form. Not even, this could be done in an onload event ;-) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311726 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: xmlTransform() and an unnecessary xml declaration.
Ian Skinner wrote: Is there a way to stop this code from producing an unnecessary XML declaration. Why yes, yes there is a way to stop this. Add the following line to your XSLT code Ian. xsl:output method=html encoding=utf-8/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311727 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Pre-filling FileField Values
I see your point. How do the multiple file uploaders in javascript or flash get around this problem? -Original Message- From: Brad Wood [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 1:46 PM To: CF-Talk Subject: Re: Pre-filling FileField Values No. It's a security hole. Imagine being able to pre-fill it with C:\my documents\sensitive file.doc and then hiding the form field so they never even knew about it. You could upload any file you wanted from your user and all they would need to do was submit the form. Well, heck, you can automatically submit forms with JavaScript anyway... ~Brad - Original Message - From: Rick Faircloth [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Thursday, August 28, 2008 12:28 PM Subject: Pre-filling FileField Values Is there some way to pre-fill a filefield value? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311728 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Listing then Deleting Duplicates
I have a big table with duplicate entries. I would like to list the unique duplicates onto the screen before deleting them. Then I would like to add a button to the bottom of the screen that allows me to start the dups deleting process. The table has an id column, patient chart number, first name, last name and date of service. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311729 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pre-filling FileField Values
I would be interested in your use case for this. As everyone has already pointed out this is a huge security risk but even from a user standpoint it doesn't make sense to me why you would want to do this? Thank You Dan Vega [EMAIL PROTECTED] http://www.danvega.org On Thu, Aug 28, 2008 at 1:46 PM, Claude Schneegans [EMAIL PROTECTED] wrote: and all they would need to do was submit the form. Not even, this could be done in an onload event ;-) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311730 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: putting in cffile
This is extremely off topic but what is p with that email address Jessica! ha :0 Thank You Dan Vega [EMAIL PROTECTED] http://www.danvega.org On Thu, Aug 28, 2008 at 12:10 PM, Jessica Kennedy [EMAIL PROTECTED] wrote: THANK YOU! That worked perfectly! I need to write a .csv file with all data encased in quotation marks, the problem is that cffile output uses double quotes to define the data to input. How can I get around this?? Geez, i know it's got to be something easy... You can either double up on the double quotes in the string, or wrap the contents in single quotes instead of double quotes. For example... cffile contents=This is some awesome text with quotes! cffile contents='This is some awesome text with quotes!' Another way would be to use CFSAVECONTENT... cfsavecontent variable=theOutputThis is some awesome text with quotes!/cfsavecontent cffile contents=#theOutput# -Justin Scott ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311731 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CF8 PDF Fonts
Thanks for all suggestions. After some fiddling around I found Garamond 3 did it, but... Not in a linked style sheet. Seems to work OK if the styles are in a STYLE block in the HEAD though. Regards Richard -Original Message- From: Andrew Scott [mailto:[EMAIL PROTECTED] Sent: 28 August 2008 16:19 To: CF-Talk Subject: RE: CF8 PDF Fonts 2 things to look at... 1) the space might be an issue 'garamond 3' might work. 2)it might be a license issue regarding distribution of the font.. But I have no idea how that works. 3) Is the font installed on the machine, I am not sure if by default the font is embedded into the PDF or not. -- Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 9015 8628 Mobile: 0404 998 273 -Original Message- From: Richard Meredith-Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, 29 August 2008 1:11 AM To: CF-Talk Subject: CF8 PDF Fonts Client wants to use the font Garamond three in CF8 generated PDF's The font is available in the CF8 administrator Font Family: garamond 3 Font Face: Garamond Three Postscript Name: GaramondThree Font Type: TRUETYPE Usable in: PDF/Flashpaper CFDOCUMENT format=PDF fontembed=selective mimetype=text/html localUrl=yes filename=full/path/to/source/file.htm pageType=A4 This is in the style sheet ...despatchfmB { font-family : garamond 3, serif; font-size : 14px; color : black;} and appears correct in the generated html source used in making the pdf - on the server, so the font is installed and exists Etc. However, it is NOT appearing in the PDF. Analysis in Acrobat Professional says the font is TimesNewRoman so somewhere the font is being substituted for a default serif font while the PDF is being generated. Anyone any ideas how I use my specified font? Thanks Richard ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311732 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Pre-filling FileField Values
Sigh... security...wouldn't need so much of it if we could all be trusted. Can't we just all be nice? :o) -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 1:45 PM To: CF-Talk Subject: Re: Pre-filling FileField Values Is there some way to pre-fill a filefield value? Forget it. Imagine it was possible, then a page could get directly some very sensitive files like your system files, or address book... ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311733 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Pre-filling FileField Values
From a browser standpoint, your hands are tied. If you can convince your users to install an ActiveX control or something then you can have free reign. I think Flash might give you more control, but I'm not too familiar. Check out the code behind this to see: http://www.asfusion.com/blog/entry/file-upload-with-coldfusion-flash-forms ~Brad - Original Message - From: Rick Faircloth [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Thursday, August 28, 2008 12:52 PM Subject: RE: Pre-filling FileField Values I see your point. How do the multiple file uploaders in javascript or flash get around this problem? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311734 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pre-filling FileField Values
Rick Faircloth wrote: I see your point. How do the multiple file uploaders in javascript or flash get around this problem? I've never seen javascript that could do this, once a bug in I.E. that allowed to was closed. I did once read about an ActiveX that purported to allow this when used in I.E. but that was years ago. Flash can do it since it is not a 'Browser' but rather a desktop application or something like it. I've never played with this so I do not know the ins and outs, but that is my understanding. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311735 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Pre-filling FileField Values
Can't we just all be nice? :o) No. See the recent string of SQL Injection attacks for details. :) ~Brad ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311736 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pre-filling FileField Values
Dan Vega wrote: I would be interested in your use case for this. As everyone has already pointed out this is a huge security risk but even from a user standpoint it doesn't make sense to me why you would want to do this? I've run into this request when working with corporate web applications. The process usually involves some regualar data upload by a user where the file follows a specific format including names. The idea being why should the poor overworked employee be bothered with navigating the file system and selecting the file when it is the same ever day|week|month. Couldn't they just click a button or something? I then reply, 'No they can't if you want this to be a quick and cheap application using a browser. Want to pay for me to learn AIR and we will discuss this/' At least that is how the reply is worded in my head. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311737 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Pre-filling FileField Values
Actually, I was just responding to someone's request on the cf-newbie list for a way to upload an entire directory at once. I thought perhaps there was a way to auto-fill with a cfdirectory-generated list and corresponding fields for each file that would be pre-filled, then all the user would have to do is hit the submit button to upload all the files in the fields. Just trying to avoid each file being selected individually for the user. However, I could certainly use this feature in my real estate apps. Sometimes clients want to load 20 photos or more of a property and they complain about having to select each photo individually. I've used javascript to create an Add another file upload field function that clones the filefields and prevents the user from having to submit one file at a time, but they still have to select each file using Browse. At this point, I don't see how pre-filling the fields with values that the user is placing there is a security risk. I'm sure in some way that I'm not familiar with the function could be abused. It just seems like with some limitations placed on a group file upload, such as no hidden fields allowed, etc, that the function could be brought into use without security risks. The name of the file (which is often obscured in the filefields without working to view the filename) could be placed above the filefields when they are generated to assure the user of what's being uploaded. There are javascript solutions for this, so why can't CF have one that doesn't pose a security risk, if the javascript solutions don't? Rick -Original Message- From: Dan Vega [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 2:01 PM To: CF-Talk Subject: Re: Pre-filling FileField Values I would be interested in your use case for this. As everyone has already pointed out this is a huge security risk but even from a user standpoint it doesn't make sense to me why you would want to do this? Thank You Dan Vega [EMAIL PROTECTED] http://www.danvega.org On Thu, Aug 28, 2008 at 1:46 PM, Claude Schneegans [EMAIL PROTECTED] wrote: and all they would need to do was submit the form. Not even, this could be done in an onload event ;-) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311738 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Listing then Deleting Duplicates
I have a big table with duplicate entries. I would like to list the unique duplicates onto the screen before deleting them. Then I would like to add a button to the bottom of the screen that allows me to start the dups deleting process. The table has an id column, patient chart number, first name, last name and date of service. Would you like fries with that? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311739 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Pre-filling FileField Values
I've never seen javascript that could do this Now, I'm not a javascript code, and barely know how to use jQuery, the most user-friendly js system I've seen. However, after a little searching, I ran across this script, which the author says will automatically generate the needed number of filefields, then, using an iframe, create multiple forms and use them to submit the filefields one after another, thus uploading multiple filefields with one pass. (If I understand it all with only a cursory review.) It looks fairly simple. Maybe I'll give that a try. But here's the author's explanation: The trick of my method is using multiple forms, and using a hidden frame as the target of the form post. I am creating multiple forms using a javascript loop, just to make the total number of file upload fields variable (defined by TotalFileFields variable). Each form contains input type=file element. When upload button is called, each form is posted one-by-one, and thus dividing the process into multiple relayed requests. And here's his code from http://vinayakshrestha.wordpress.com/2007/03/20/javascript-multiple-files-upload-trick/ html head script type=text/javascript TotalFileFields = 5; StartUpload = false; CurrentFormID = 1; function FilesUpload() { while (1) { if (CurrentFormID TotalFileFields) return true; if (eval('document.frm' + CurrentFormID + '.upFile.value') == ) { CurrentFormID++; continue; } break; } StartUpload = true; eval('document.frm' + CurrentFormID + '.submit()'); return false; } function myIFrame_OnLoad() { if (!StartUpload) return; CurrentFormID++; if (FilesUpload()) { StartUpload = false; CurrentFormID = 1; alert('UPLOAD COMPLETE'); } } function GenerateUploadForms() { for (i = 1; i = TotalFileFields; i++) { document.write('form name=frm' + i + ' method=post action=http://localhost/; target=myIFrame enctype=multipart/form-data'); document.write('input type=file name=upFile//form\n'); } } /script /head body script type=text/javascriptGenerateUploadForms();/script input type=button value=UPLOAD onclick=FilesUpload();/ iframe id=myIFrame name=myIFrame onload=myIFrame_OnLoad(); style=display:none;/iframe -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 2:06 PM To: CF-Talk Subject: Re: Pre-filling FileField Values Rick Faircloth wrote: I see your point. How do the multiple file uploaders in javascript or flash get around this problem? I've never seen javascript that could do this, once a bug in I.E. that allowed to was closed. I did once read about an ActiveX that purported to allow this when used in I.E. but that was years ago. Flash can do it since it is not a 'Browser' but rather a desktop application or something like it. I've never played with this so I do not know the ins and outs, but that is my understanding. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311740 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Listing then Deleting Duplicates
unique duplicates ??? -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 2:40 PM To: CF-Talk Subject: Re: Listing then Deleting Duplicates I have a big table with duplicate entries. I would like to list the unique duplicates onto the screen before deleting them. Then I would like to add a button to the bottom of the screen that allows me to start the dups deleting process. The table has an id column, patient chart number, first name, last name and date of service. Would you like fries with that? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311741 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Pre-filling FileField Values
Rick Faircloth wrote: (If I understand it all with only a cursory review.) Just reading your posted description, this is a way to just create multiple file upload controls. JavaScript can easily do this, I am unclear on what the benefit of making them all separate forms in iframes is, but I've done similar. What JavaScript can not do, as far as I know, is to populate those file controls with any predefined file names and paths. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311742 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
AMD vs Intel for CF Servers
Vivio has been researching processors for the next few VPS platform servers that we will be purchasing, and I was wondering if anyone knows of any direct performance comparisons between Intel and AMD with regards to CFML processing. In Vivio's research, we found the following benchmark which illustrates the performance differences of the Sun JVM on the two different architectures, but so far this is the closest things we've seen that has any relevance to CFML processing: http://www.anandtech.com/IT/showdoc.aspx?i=3162p=12 More info about the specific test they ran on Sun's Java can be found here (SPECjbb): http://www.spec.org/jbb2000/ Is anyone aware of any recent direct comparisons between Intel and AMD? Perhaps even your own experiences? To be clear, I'm not talking about desktop chips - from what we've seen Intel has a pretty clear lead there. Unfortunately, a lead in the desktop world doesn't necessarily translate into the server chip arena, as the above benchmark shows - I was just hoping to find some more information hopefully directly related to CF. So... penny for your thoughts? =) Thanks in advance! -- Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Adobe Solution Provider ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311743 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Pre-filling FileField Values
I thought perhaps there was a way to auto-fill with a cfdirectory-generated list and corresponding fields for each file that would be pre-filled, then all the user would First, CFDIRECTORY only has access to the files and directories on the server, not the client, so you wouldn't be able to list the user's folders and pre-populate the fields anyway. At this point, I don't see how pre-filling the fields with values that the user is placing there is a security risk. I'm sure in some way that I'm not familiar with the function could be abused. Ok, imaging that there is a widely used accounting program that stores its data file in the same location on every install. Now, imagine a malicious web author sending spam for free Paris Hilton pictures. The unsuspecting user visits the page, but it's asking for their age before it will let them through. No problem! Here's my age, click submit, and WHAM, they now have your accounting database. How? Because they put a file upload field with the path to your database pre-populated. Maybe the field was hidden, covered with an image, or re-positioned off screen so the user didn't see it. Whatever the case, the browser won't let you do that to prevent this scenario. It just seems like with some limitations placed on a group file upload, such as no hidden fields allowed, etc, that the function could be brought into use without security risks. The name of the file (which is often obscured in the filefields without working to view the filename) could be placed above the filefields when they are generated to assure the user of what's being uploaded. That's one of the faulty assumptions; that user's check for these sorts of things before they click submit. How many years did it take to train people to look for the lock icon when making a purchase? The browser vendors had to start changing the color of the address bar to get people to notice! There are javascript solutions for this, so why can't CF have one that doesn't pose a security risk, if the javascript solutions don't? I think the JS method someone mentioned exploited a bug in IE to get around that, and said bug has since been patched so even that won't work anymore. -Justin Scott ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311744 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Pre-filling FileField Values
I wrote a multi uploader in flex / cf. If you need the source I could probably help you out. http://cfmu.riaforge.org Thank You Dan Vega [EMAIL PROTECTED] http://www.danvega.org On Thu, Aug 28, 2008 at 3:03 PM, Ian Skinner [EMAIL PROTECTED] wrote: Rick Faircloth wrote: (If I understand it all with only a cursory review.) Just reading your posted description, this is a way to just create multiple file upload controls. JavaScript can easily do this, I am unclear on what the benefit of making them all separate forms in iframes is, but I've done similar. What JavaScript can not do, as far as I know, is to populate those file controls with any predefined file names and paths. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311745 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Pre-filling FileField Values
Just reading your posted description, this is a way to just create multiple file upload controls. That's not the way I read it. Again, the author's description: The trick of my method is using multiple forms, and using a hidden frame as the target of the form post. I am creating multiple forms using a javascript loop, just to make the total number of file upload fields variable (defined by TotalFileFields variable). Each form contains input type=file element. When upload button is called, each form is posted one-by-one, and thus dividing the process into multiple relayed requests. Note he states: When the upload button is called, each for is posted one-by-one, this dividing the process into multiple relayed requests. He seems to be saying that one click of the button sets off a series of auto-generated forms containing a filefield which is automatically submitted via js until there are no more files, at which point the function breaks... I tried his code as is, except for adding /body and /html to the page, but it doesn't work or look correct. And from his code, I can't see where the directory or files would be specified. Maybe this is not all there is to his code. Perhaps I'll email him about it. -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 3:04 PM To: CF-Talk Subject: Re: Pre-filling FileField Values Rick Faircloth wrote: (If I understand it all with only a cursory review.) Just reading your posted description, this is a way to just create multiple file upload controls. JavaScript can easily do this, I am unclear on what the benefit of making them all separate forms in iframes is, but I've done similar. What JavaScript can not do, as far as I know, is to populate those file controls with any predefined file names and paths. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311746 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Pre-filling FileField Values
JavaScript can easily do this, I am unclear on what the benefit of making them all separate forms in iframes is, but I've done similar. The iframes seems to be his method to allow triggering of forms submission one-after-another. I've got my cloning solution for easily creating additional filefields, but they still have to be Browsed one-at-a-time for the files. -Original Message- From: Dan Vega [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 3:16 PM To: CF-Talk Subject: Re: Pre-filling FileField Values I wrote a multi uploader in flex / cf. If you need the source I could probably help you out. http://cfmu.riaforge.org Thank You Dan Vega [EMAIL PROTECTED] http://www.danvega.org On Thu, Aug 28, 2008 at 3:03 PM, Ian Skinner [EMAIL PROTECTED] wrote: Rick Faircloth wrote: (If I understand it all with only a cursory review.) Just reading your posted description, this is a way to just create multiple file upload controls. JavaScript can easily do this, I am unclear on what the benefit of making them all separate forms in iframes is, but I've done similar. What JavaScript can not do, as far as I know, is to populate those file controls with any predefined file names and paths. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311747 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pre-filling FileField Values
Well the way I read it, but I have not looked at the site. Is that this tool creates multiple file controls, then a user has to populate them with files, then the button submits them all. But I got to admit all that iframe and separate form stuff is an awful lot of work to do this rather simple functionality. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311748 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Pre-filling FileField Values
There are javascript solutions for this, so why can't CF have one that doesn't pose a security risk, if the javascript solutions don't? Rick It should be pointed out that CF is not involved in this limitation at all. If you want to make a case for change it would need to be made with the HTTP|HTML standard boards and the browser makers who follow their recommendations. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311749 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pre-filling FileField Values
Ian Skinner wrote: But I got to admit all that iframe and separate form stuff is an awful lot of work to do this rather simple functionality. I just read through the post for that multiple file loader JavaScript. The problem he is trying to get around using multiple forms is size limits and timeouts on an individual large request with multiple files in it. By breaking the process up into separate requests, one for each file. There is nothing to this tool about automatically populating these file controls that I can see. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311750 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Pre-filling FileField Values
I believe the Zip functionality that was suggested to the CFnewbie poster would be an ideal solution for your 20 photos. You can instruct the client to zip all of the photos into a zip file and then upload using the form. You can check to see if it is a .zip file, if it is, you can unzip it to your app directory and then loop over the image files inside to process them into your site. (if you resize/thumbnail/etc) Good luck, William Actually, I was just responding to someone's request on the cf-newbie list for a way to upload an entire directory at once. I thought perhaps there was a way to auto-fill with a cfdirectory-generated list and corresponding fields for each file that would be pre-filled, then all the user would have to do is hit the submit button to upload all the files in the fields. Just trying to avoid each file being selected individually for the user. However, I could certainly use this feature in my real estate apps. Sometimes clients want to load 20 photos or more of a property and they complain about having to select each photo individually. I've used javascript to create an Add another file upload field function that clones the filefields and prevents the user from having to submit one file at a time, but they still have to select each file using Browse. At this point, I don't see how pre-filling the fields with values that the user is placing there is a security risk. I'm sure in some way that I'm not familiar with the function could be abused. It just seems like with some limitations placed on a group file upload, such as no hidden fields allowed, etc, that the function could be brought into use without security risks. The name of the file (which is often obscured in the filefields without working to view the filename) could be placed above the filefields when they are generated to assure the user of what's being uploaded. There are javascript solutions for this, so why can't CF have one that doesn't pose a security risk, if the javascript solutions don't? Rick ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311751 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: xmlTransform() and an unnecessary xml declaration.
Why yes, yes there is a way to stop this. Add the following line to your XSLT code Ian. xsl:output method=html encoding=utf-8/ Thanks for the follow up, google will be pleased :) Dominic ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311752 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Pre-filling FileField Values
tool creates multiple file controls, then a user has to populate them with files, then the button submits them all. Very well could be. Like I said, I don't understand the js stuff enough to know. I did leave a comment for him, however, which was moderated, so I hope to hear from him with a working example. I'll let everyone know. -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 3:48 PM To: CF-Talk Subject: Re: Pre-filling FileField Values Well the way I read it, but I have not looked at the site. Is that this tool creates multiple file controls, then a user has to populate them with files, then the button submits them all. But I got to admit all that iframe and separate form stuff is an awful lot of work to do this rather simple functionality. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311753 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Pre-filling FileField Values
This issues just sounds like it could be addressed by placing limitations on what type of files are acceptable in the upload. Such as with cffile... I don't really know. -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 3:51 PM To: CF-Talk Subject: Re: Pre-filling FileField Values There are javascript solutions for this, so why can't CF have one that doesn't pose a security risk, if the javascript solutions don't? Rick It should be pointed out that CF is not involved in this limitation at all. If you want to make a case for change it would need to be made with the HTTP|HTML standard boards and the browser makers who follow their recommendations. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311754 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Pre-filling FileField Values
Thanks for the suggestion, William. I'll keep that in my notes as a solution next time I'm confronted with that issue. Rick -Original Message- From: William Seiter [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 3:57 PM To: CF-Talk Subject: Re: Pre-filling FileField Values I believe the Zip functionality that was suggested to the CFnewbie poster would be an ideal solution for your 20 photos. You can instruct the client to zip all of the photos into a zip file and then upload using the form. You can check to see if it is a .zip file, if it is, you can unzip it to your app directory and then loop over the image files inside to process them into your site. (if you resize/thumbnail/etc) Good luck, William Actually, I was just responding to someone's request on the cf-newbie list for a way to upload an entire directory at once. I thought perhaps there was a way to auto-fill with a cfdirectory-generated list and corresponding fields for each file that would be pre-filled, then all the user would have to do is hit the submit button to upload all the files in the fields. Just trying to avoid each file being selected individually for the user. However, I could certainly use this feature in my real estate apps. Sometimes clients want to load 20 photos or more of a property and they complain about having to select each photo individually. I've used javascript to create an Add another file upload field function that clones the filefields and prevents the user from having to submit one file at a time, but they still have to select each file using Browse. At this point, I don't see how pre-filling the fields with values that the user is placing there is a security risk. I'm sure in some way that I'm not familiar with the function could be abused. It just seems like with some limitations placed on a group file upload, such as no hidden fields allowed, etc, that the function could be brought into use without security risks. The name of the file (which is often obscured in the filefields without working to view the filename) could be placed above the filefields when they are generated to assure the user of what's being uploaded. There are javascript solutions for this, so why can't CF have one that doesn't pose a security risk, if the javascript solutions don't? Rick ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311755 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Pre-filling FileField Values
process them into your site. (if you resize/thumbnail/etc) Oh, yes, definitely. The image processing of CF 8 is the main reason why I upgraded from CF 4.5! I was s glad to see those capabilities! -Original Message- From: William Seiter [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 3:57 PM To: CF-Talk Subject: Re: Pre-filling FileField Values I believe the Zip functionality that was suggested to the CFnewbie poster would be an ideal solution for your 20 photos. You can instruct the client to zip all of the photos into a zip file and then upload using the form. You can check to see if it is a .zip file, if it is, you can unzip it to your app directory and then loop over the image files inside to process them into your site. (if you resize/thumbnail/etc) Good luck, William Actually, I was just responding to someone's request on the cf-newbie list for a way to upload an entire directory at once. I thought perhaps there was a way to auto-fill with a cfdirectory-generated list and corresponding fields for each file that would be pre-filled, then all the user would have to do is hit the submit button to upload all the files in the fields. Just trying to avoid each file being selected individually for the user. However, I could certainly use this feature in my real estate apps. Sometimes clients want to load 20 photos or more of a property and they complain about having to select each photo individually. I've used javascript to create an Add another file upload field function that clones the filefields and prevents the user from having to submit one file at a time, but they still have to select each file using Browse. At this point, I don't see how pre-filling the fields with values that the user is placing there is a security risk. I'm sure in some way that I'm not familiar with the function could be abused. It just seems like with some limitations placed on a group file upload, such as no hidden fields allowed, etc, that the function could be brought into use without security risks. The name of the file (which is often obscured in the filefields without working to view the filename) could be placed above the filefields when they are generated to assure the user of what's being uploaded. There are javascript solutions for this, so why can't CF have one that doesn't pose a security risk, if the javascript solutions don't? Rick ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311756 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pre-filling FileField Values
Sometimes clients want to load 20 photos or more of a property and they complain about having to select each photo individually. Exact, one should be able to upload every thing like *.jpg in a directory, or select several files in it. I've implemented another solution were clients can send all their images in one zip file, and I unzip it on the server. Of course, there is no gain in size, and users must be able to zip files, but at least for this application, it doesn't look like it is asking too much ;-) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311757 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pre-filling FileField Values
Rick Faircloth wrote: This issues just sounds like it could be addressed by placing limitations on what type of files are acceptable in the upload. Such as with cffile... I don't really know. But the point is that cffile... would happily accept anything right now. ColdFusion does not care and is *NOT* limiting you here. Your BROWSER is limiting you. Adobe could put all the limits we want! But until the makers of Internet Explorer and FireFox and Opera and all the others get together and decide to go against the recommendations created by the HTTP and HTML standards or these standards are changed, it will not do any good at all. And how would Adobe fixing cffile... to be secure protect uses for unscrupulous programmers using ASP, .NET, PHP, PERL, CGI, JAVA, C++ and anything else that could be used to program an page. Especially since the security whole we are talking about does not even require an Application processor. I could hand code a file stealing form in Notepad and save it to a server and then manually collect all the files from the Web Server if this where allowed. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311758 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfhttp and Google Search Appliance
Dave, thanks for your help but I finally got it to work. Just in case you are interested: !- !--- Expects URL.command --- !--- Export_Config --- !--- Import_Config Filename --- !--- Add_Collection CollectionID CollectionName? --- !--- Delete_Collection CollectionID --- !--- Function to check HTTP response for errors and print debug --- cffunction name=checkHttpStruct returnType=boolean cfargument name=httpStruct type=Struct required=yes cfargument name=stage type=String required=yes cfif LEN(httpStruct.errorDetail) GT 0 cfdump var=#httpStruct.errorDetail# label=#stage# ErrorBR cfreturn true /cfif cfdump var=#httpStruct# label=#stage# ResponseBR cfreturn false /cffunction !--- Initialize --- cfset Variables.error = False cfset Variables.googleWelcome = Google Mini gt; Home cfset Variables.adminUser = admin cfset Variables.adminPwd = blahblah !--- TBD HARDCODE get from db --- cfset Variables.googleIP = 192.168.0.20 !--- TBD HARDCODE Application.cfm --- !--- Set the URL for the google admin console --- cfset Variables.url = http://#Variables.googleIP#:8000/EnterpriseController; !--- Send initial request to google. This is just to get a response --- cfhttp method=GET url=#Variables.url# useragent=#CGI.HTTP_USER_AGENT#/cfhttp cfset Variables.error = checkHttpStruct(CFHTTP, Initial Request) cfif NOT Variables.error !--- Get the cookie from the response object. This is the cookie that --- !--- we are going to echo back in subsequent CFHttp requests. --- !--- The google cookie will look like: S=enterprise=;--- !--- where is a unique key --- cfset Variables.googleCookie = ListGetAt(CFHTTP.Response.ResponseHeader[Set-Cookie],1,;) !--- Try to login --- cfhttp method=POST url=#Variables.url# useragent=#CGI.HTTP_USER_AGENT# cfhttpparam name=#Variables.googleCookie# type=COOKIE value=#Variables.googleCookie# cfhttpparam name=actionType type=URLvalue=authenticateUser cfhttpparam name=userName type=URLvalue=#Variables.adminUser# cfhttpparam name=password type=URLvalue=#Variables.adminPwd# /cfhttp cfset Variables.error = checkHttpStruct(CFHTTP, Login Request) /cfif cfif NOT Variables.error !--- Check if we have a successful login by looking for the google welcome on the admin main page --- cfif FindNoCase(#Variables.googleWelcome#, CFHTTP.Filecontent) EQ 0 cfoutputLogin Failed/cfoutputBR cfset Variables.error = True /cfif /cfif cfif NOT Variables.error cfoutputLogin Success/cfoutputBR cfif URL.command EQ Export_Config !--- Export Config --- cfhttp method=POST url=#Variables.url# useragent=#CGI.HTTP_USER_AGENT# cfhttpparam name=#Variables.googleCookie# type=COOKIE value=#Variables.googleCookie# cfhttpparam name=actionType type=URLvalue=importExport cfhttpparam name=export type=URLvalue=Export Configuration cfhttpparam name=password1 type=URLvalue=#Variables.adminPwd# cfhttpparam name=password2 type=URLvalue=#Variables.adminPwd# /cfhttp !--- TBD cfelseif URL.command EQ Import_Config cfelseif URL.command EQ Add_Collection cfelseif URL.command EQ Delete_Collection cfelse TBD --- /cfif cfset Variables.error = checkHttpStruct(CFHTTP, #URL.command#) !--- Log out --- cfhttp method=POST url=#Variables.url# useragent=#CGI.HTTP_USER_AGENT# cfhttpparam name=#Variables.googleCookie# type=COOKIE value=#Variables.googleCookie# cfhttpparam name=actionType type=URLvalue=logout /cfhttp cfset Variables.error = checkHttpStruct(CFHTTP, Logout Request) /cfif ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311759 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pre-filling FileField Values
The bottom line is that you cannot use JavaScript to set the value of a file field. You just can't do it. The browser makers went out of their way to make sure that this is impossible due to the devastating security issues that would result if it were allowed. There is absolutely no way to insert a value into a file input element using JavaScript. The only way a value can be put in there is a result of the user choosing a file in the file selection dialog box. All the multi-upload JavaScript tricks are doing is creating separate hidden file input fields, but the user still has to explicitly choose a file value to put into it. Regards, Brian On Thu, Aug 28, 2008 at 5:03 PM, Rick Faircloth [EMAIL PROTECTED]wrote: This issues just sounds like it could be addressed by placing limitations on what type of files are acceptable in the upload. Such as with cffile... I don't really know. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311760 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Pre-filling FileField Values
Yes, getting the basic standards which restrict functionality would be another whole game... -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 6:05 PM To: CF-Talk Subject: Re: Pre-filling FileField Values Rick Faircloth wrote: This issues just sounds like it could be addressed by placing limitations on what type of files are acceptable in the upload. Such as with cffile... I don't really know. But the point is that cffile... would happily accept anything right now. ColdFusion does not care and is *NOT* limiting you here. Your BROWSER is limiting you. Adobe could put all the limits we want! But until the makers of Internet Explorer and FireFox and Opera and all the others get together and decide to go against the recommendations created by the HTTP and HTML standards or these standards are changed, it will not do any good at all. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311762 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Pre-filling FileField Values
the user still has to explicitly choose a file value to put into it And that's good...the user should know exactly what they're uploading and be able to control that. However, if I want to take responsibility to designate an entire folder of files for upload, I should be able to do that, too. Not just one file at a time, but choose the folder and all its contents. Why not? -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 6:35 PM To: CF-Talk Subject: Re: Pre-filling FileField Values The bottom line is that you cannot use JavaScript to set the value of a file field. You just can't do it. The browser makers went out of their way to make sure that this is impossible due to the devastating security issues that would result if it were allowed. There is absolutely no way to insert a value into a file input element using JavaScript. The only way a value can be put in there is a result of the user choosing a file in the file selection dialog box. All the multi-upload JavaScript tricks are doing is creating separate hidden file input fields, but the user still has to explicitly choose a file value to put into it. Regards, Brian ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311763 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Pre-filling FileField Values
However, if I want to take responsibility to designate an entire folder of files for upload, I should be able to do that, too. Not just one file at a time, but choose the folder and all its contents. Because browsers weren't designed to allow you to do that. If you want to escape the limitations of the browser, you'll need to use another client. This is something you could build fairly easily with AIR. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311765 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Pre-filling FileField Values
However, if I want to take responsibility to designate an entire folder of files for upload, I should be able to do that, too. Not just one file at a time, but choose the folder and all its contents. Why not? I think you're completely missing the whole security issue that would be created if they allowed that. You see it as functionality to make life easier for the users. The hackers see it as a golden opportunity to do a drive-by upload of your entire hard drive. Fortunately the people who design the protocols and standards have the ability to recognize this, and I, for one, am thankful for that. -Justin Scott ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311766 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Pre-filling FileField Values
but at least for this application, it doesn't look like it is asking too much ;-) Ha! Claude! Are you kidding! I'll bet if I asked all of my clients to zip up a folder of folders, only 10% would know how to do it without in-depth instruction... -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 5:30 PM To: CF-Talk Subject: Re: Pre-filling FileField Values Sometimes clients want to load 20 photos or more of a property and they complain about having to select each photo individually. Exact, one should be able to upload every thing like *.jpg in a directory, or select several files in it. I've implemented another solution were clients can send all their images in one zip file, and I unzip it on the server. Of course, there is no gain in size, and users must be able to zip files, but at least for this application, it doesn't look like it is asking too much ;-) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311761 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pre-filling FileField Values
Ha! Claude! Are you kidding! I'll bet if I asked all of my clients to zip up a folder of folders, only 10% would know how to do it without in-depth instruction... For those types I generally just deploy an FTP account and craft a URL that they can click on such as: ftp://user:[EMAIL PROTECTED]/ Then they can just drag and drop the files into the Explorer window and it uploads them to the server. Depending on the application a process can either run periodically to sweep the files in and process them into a general file/image library, or they can click the import images button when adding a record and it will go pull in anything in the upload folder. Gets around the whole click and select each file individually issue, the ZIP issue, AND the HTTP timeout issue all at once. If you craft your user interface well then it becomes easy for the users. -Justin Scott ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311764 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pre-filling FileField Values
On Thu, Aug 28, 2008 at 7:03 PM, Rick Faircloth [EMAIL PROTECTED]wrote: the user still has to explicitly choose a file value to put into it And that's good...the user should know exactly what they're uploading and be able to control that. However, if I want to take responsibility to designate an entire folder of files for upload, I should be able to do that, too. Not just one file at a time, but choose the folder and all its contents. Why not? Because that isn't what HTTP was ever designed to do. They made a whole protocol just to handle this: FTP. I'm somewhat confused about your point now. It's clear that what you're attempting to do is simply not possible using only a web broswer and a form. There are other avenues such as AIR, ActiveX, Java applets, or FTP that will do this. But unless you start mailing standards bodies and browser makers with enhancement requests, this avenue is closed. I can tell you that it makes functional testing a pain, because if you want to use something like Selenium to test a page that does a file upload, you're out of luck. Annoying? Maybe in some cases. Likely to change? Unlikely to the point of being moot, I'm afraid. Regards, Brian ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311767 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Pre-filling FileField Values
Sounds like a good idea! -Original Message- From: Justin Scott [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 7:07 PM To: CF-Talk Subject: Re: Pre-filling FileField Values Ha! Claude! Are you kidding! I'll bet if I asked all of my clients to zip up a folder of folders, only 10% would know how to do it without in-depth instruction... For those types I generally just deploy an FTP account and craft a URL that they can click on such as: ftp://user:[EMAIL PROTECTED]/ Then they can just drag and drop the files into the Explorer window and it uploads them to the server. Depending on the application a process can either run periodically to sweep the files in and process them into a general file/image library, or they can click the import images button when adding a record and it will go pull in anything in the upload folder. Gets around the whole click and select each file individually issue, the ZIP issue, AND the HTTP timeout issue all at once. If you craft your user interface well then it becomes easy for the users. -Justin Scott ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311768 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Pre-filling FileField Values
The hackers see it as a golden opportunity to do a drive-by upload of your entire hard drive. But why is there more risk for a user to upload a single directory, and *only* a single directory of their choosing than to upload single files. Is it just to protect them from themselves? With the limitation of the function to one directory without recursion, I don't see how those poses risk to a user's or my server's hard drive. No recursion and limitation on file types... How would the one folder method be more risky than the one file method? And I'm asking because I really want to understand, not because I think I know what's better... -Original Message- From: Justin Scott [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 7:11 PM To: CF-Talk Subject: Re: Pre-filling FileField Values However, if I want to take responsibility to designate an entire folder of files for upload, I should be able to do that, too. Not just one file at a time, but choose the folder and all its contents. Why not? I think you're completely missing the whole security issue that would be created if they allowed that. You see it as functionality to make life easier for the users. The hackers see it as a golden opportunity to do a drive-by upload of your entire hard drive. Fortunately the people who design the protocols and standards have the ability to recognize this, and I, for one, am thankful for that. -Justin Scott ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311769 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Pre-filling FileField Values
Oh, Dave... I don't want to have to learn something new right now. I'm trying too hard to keep CF8, CFEclipse, SVN, hand-coding everything, and CSS-layout sites working correctly in my brain. You're just trying to give me a migraine! :o) Before I learn another app right now, my clients will have to push way more than 20 Browse buttons looking for files. -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 7:14 PM To: CF-Talk Subject: RE: Pre-filling FileField Values However, if I want to take responsibility to designate an entire folder of files for upload, I should be able to do that, too. Not just one file at a time, but choose the folder and all its contents. Because browsers weren't designed to allow you to do that. If you want to escape the limitations of the browser, you'll need to use another client. This is something you could build fairly easily with AIR. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311770 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Pre-filling FileField Values
I hear what you're saying. I just like to rail against the limitations some. Whether 'tis nobler in the mind to suffer the slings and arrows of outrageous misfortune, or to take arms against a sea of troubles and by opposing end them... -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 7:48 PM To: CF-Talk Subject: Re: Pre-filling FileField Values On Thu, Aug 28, 2008 at 7:03 PM, Rick Faircloth [EMAIL PROTECTED]wrote: the user still has to explicitly choose a file value to put into it And that's good...the user should know exactly what they're uploading and be able to control that. However, if I want to take responsibility to designate an entire folder of files for upload, I should be able to do that, too. Not just one file at a time, but choose the folder and all its contents. Why not? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311771 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Pre-filling FileField Values
How would the one folder method be more risky than the one file method? If they're still clicking and selecting then it isn't more risk per se, but creates issues in usability for the user. If they're not careful they could theoretically upload their entire My Documents folder without realizing it when they intended to send one file. -Justin Scott ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311772 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pre-filling FileField Values
there are also commercial java applets out there that allow a user to select multiple files at once (though not just pointing to the folder containing the files - actually selecting the files inside the folder, but they can click on and select multiple files in one 'select files' window, or in some cases even ctrl+a to select all of them at once). such applets are used on most of the photo sharing websites. of course, the users have to allow the applet to be installed first. sorry, no links. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Rick Faircloth wrote: Oh, Dave... I don't want to have to learn something new right now. I'm trying too hard to keep CF8, CFEclipse, SVN, hand-coding everything, and CSS-layout sites working correctly in my brain. You're just trying to give me a migraine! :o) Before I learn another app right now, my clients will have to push way more than 20 Browse buttons looking for files. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311773 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfthread running condition?
Is there a way to make the start of one thread conditional upon the ending of a previous thread? I want to keep only one thread at a time running and would like to set up a series of threads to run, but only one at a time. I've been doing this with scheduled tasks and emailing completion to myself for verification of success each morning, but running 54 schedule task templates currently, with having to add another 30 or so soon has just become quite cumbersome. Didn't know if there were any options. Too bad we can't number the threads to run sequentially and set them to run only individually. Rick ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311774 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Pre-filling FileField Values
Well, I just set up something that to say: You're about to upload xyz (file or folder). Are you sure this is what you want to do? Yes No Of course I don't want all that on my server, so maybe I would have to limit the name of the folder their uploading to a specific name. cfdirectory action=upload recursive=no specifyDirectory=yes directoryName=Photos dataLimit=yes DataSizeLimit=100 (MB) MaxNumberofFiles=100 UseThread=yes ThreadName=PhotoUpload Whatever...I'm tired...FTP or having the client zip their files sounds good... Looks like it nobler in the mind to suffer... -Original Message- From: Justin D. Scott [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 9:56 PM To: CF-Talk Subject: RE: Pre-filling FileField Values How would the one folder method be more risky than the one file method? If they're still clicking and selecting then it isn't more risk per se, but creates issues in usability for the user. If they're not careful they could theoretically upload their entire My Documents folder without realizing it when they intended to send one file. -Justin Scott ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311775 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Pre-filling FileField Values
Ah-ha! I knew it! -Original Message- From: Azadi Saryev [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 9:54 PM To: CF-Talk Subject: Re: Pre-filling FileField Values there are also commercial java applets out there that allow a user to select multiple files at once (though not just pointing to the folder containing the files - actually selecting the files inside the folder, but they can click on and select multiple files in one 'select files' window, or in some cases even ctrl+a to select all of them at once). such applets are used on most of the photo sharing websites. of course, the users have to allow the applet to be installed first. sorry, no links. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Rick Faircloth wrote: Oh, Dave... I don't want to have to learn something new right now. I'm trying too hard to keep CF8, CFEclipse, SVN, hand-coding everything, and CSS-layout sites working correctly in my brain. You're just trying to give me a migraine! :o) Before I learn another app right now, my clients will have to push way more than 20 Browse buttons looking for files. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311776 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
ColdFusion not seeing standard Java classes when using CFINVOKE
Hello folks, I'm converting a CFC to use cfinvoke instead of createObject becase of a hosting provider's restrictions. When using cfinvoke, ColdFusion (v8 Developer edition, under Windows 2003 Server) does not see standard Java classes; however, when using createObject, there does not appear to be a problem. A short example: THIS FAILS (Could not find the ColdFusion Component or Interface java.lang.System.): cfinvoke component=java.lang.System method=getProperties returnvariable=prop2 cfdump var=#prop2# THIS WORKS: cfset prop = createObject(java, java.lang.System).getProperties() cfdump var=#prop# If someone has encountered a similar issue and resolved it, I'd appreciate hearing it. Thanks in advance... Regards, Joel ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311777 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
ColdFusion not seeing standard Java classes when using CFINVOKE
Hello folks, I'm converting a CFC to use cfinvoke instead of createObject becase of a hosting provider's restrictions. When using cfinvoke, ColdFusion (v8 Developer edition, under Windows 2003 Server) does not see standard Java classes; however, when using createObject, there does not appear to be a problem. A short example: THIS FAILS (Could not find the ColdFusion Component or Interface java.lang.System.): cfinvoke component=java.lang.System method=getProperties returnvariable=prop2 cfdump var=#prop2# THIS WORKS: cfset prop = createObject(java, java.lang.System).getProperties() cfdump var=#prop# If someone has encountered a similar issue and resolved it, I'd appreciate hearing it. Thanks in advance... Regards, Joel ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311778 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4