>Date: Tue, 14 May 2002 10:56:34 -0700 >To: [EMAIL PROTECTED] >From: "Steven A. del Sol" <[EMAIL PROTECTED]> >Subject: CFX_IMG, AUTORESIZE, and personal photo DB with 3000 original photos. > >Ok, here is what I am trying to do. I would like to batch process all >3000 of my photos using this CFX tag. The tag works great >individually. Here is my situation. To batch process I need CF to load >the images in the <input type=file> but I can not get it to work. I >changed my server address and website see if you can help me figure this >one out. here is the code I am using.. the tags can be found at >CFDEV.com. THANKS > > > > > > ><!--- <cfif IsDefined("action")><cfoutput>#url.nextone#</cfoutput> ><cfquery datasource="#application.db#" name="goodluck">select * from photo >where photoid=1451</cfquery> > <cfset imagepath="c:\serverloc\"> > <cfset thumbpath="c:\serverloc\"> > <cfset imagedir="http://yourweb"> > <cfset thumbdir="http://yourweb""> > > <!---Call CF_AutoResize ---> > <cf_autoresize imagepath="#imagepath#" maxsize="200" > thumbsize="80" prefix="tn" goof="#goodluck.photo#" filefield="form.photo" > thumbpath="#thumbpath#" nameconflict="overwrite"> > <!---Outputs the variables #photo# and #thumbnail#---> > <cfquery name=addphoto datasource=#application.db#> > UPDATE photo >SET cdphoto='#photo#', thumbnail='#thumbnail#' >WHERE (PHOTOID = 1451) > </cfquery> > > > > > ><cfelse> ><cfparam name="url.nextone" default="1451"> ><cfquery datasource="#application.db#" name="goodluck">select * from photo >where photoid=#url.nextone#</cfquery> ><cfoutput> ><cfset nextone = #goodluck.photoid#+1> ><form action="batchphotos.cfm?action=submit&nextone=#nextone#" method=post >enctype="multipart/form-data" name="bozo"> ><input type="file" name="photo" accept="image/gif,image/jpeg,image/x-MS-bmp"> > <input type=hidden name=checker><input type=submit name=bozo > value="Submit"></form></cfoutput> > ><!--- ><body onload="document.bozo.submit();"></body> ---> ></cfif> --->
Steven A. del Sol NETPACQ Internet Systems 858.541.0222 - [EMAIL PROTECTED] http://www.NETPACQ.com ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists