Just a thought... Have the client upload the zip file to a temp dir.
Then use cfx_zip to unzip the files where you want them. -OR- If you have to rename the images because of name conflicts, loop through the images and do a replace function on the html file for each image. You could get the list of images by using cfdirectory, or maybe the cfx_zip tag returns a list of unzipped files (don't know... never used it). I think you'd have a happy customer if he only had to upload one file. -Brad > -----Original Message----- > From: Scott Van Vliet [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 18, 2002 10:43 PM > To: CF-Talk > Subject: RE: Finding Images in HTML and Uploading > > > ActivEdit is too much for this particular client. The client is > basically going to be receiving a ZIP file containing an HTML file and > images. His job will just be to copy the HTML out of the file and paste > it into the field, and then supply the required images (which will be > named as those in the ZIP file). Any other ideas? Thanks for the tip, > though - ActivEdit is a great tool, and I have used it before. ^_^ > > ---- > SCOTT VAN VLIET > BRD.WRKS INTERACTIVE > T: 714.469.6805 > E: [EMAIL PROTECTED] > > > -----Original Message----- > From: Matthew Walker [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 18, 2002 3:56 PM > To: CF-Talk > Subject: RE: Finding Images in HTML and Uploading > > Why don't you use something like Activedit which has image uploading > built in? > > -----Original Message----- > From: VAN VLIET, SCOTT E (SBCSI) [mailto:[EMAIL PROTECTED]] > Sent: Friday, 19 April 2002 10:50 a.m. > To: CF-Talk > Subject: Finding Images in HTML and Uploading > > > Before I go any farther than I already have, I thought I should ask you > folks if you have already seen this functionality, or know of a custom > tag > or UDF to do this: > > I have a client who wants to be able to post HTML to a content > management > site, and have the ability to upload the images he references in the > code. > This is essentially a nightmare, however I can up with an idea for the > solution. > > Basically, when he saves the HTML, I want to search through the text > that he > has typed and find any <img> tags. Then, once I have the references to > those images found in the text, I will bring the user to another form > page, > which will loop over the list of these found <img> tags and write a > dynamically named <input type="image"> field for the corresponding > image. > Once the user selects and image for each found in the HTML text, I will > then > need to upload those images and change the <img> tags in the HTML text > to > reflect the names and location of the images uploaded, and return the > modified HTML text to be saved to the database. > > WHEH! That sounds like so much fun! But, if any of you out there have > any > better ideas, please let me know. > > Thanks! > > Scott > > +--------------------------+---------------------------+ > | SCOTT VAN VLIET | SBC SERVICES, INC. | > | Senior Analyst | ITO Enterprise Tools | > | Tel: 858.886.3878 | 7337 Trade St. Room 4000 | > | Pgr: 858.536.0070 | San Diego, CA 92121 | > | Email: [EMAIL PROTECTED] | http://www.sbc.com | > +--------------------------+---------------------------+<?xml:namespace > prefix = o ns = "urn:schemas-microsoft-com:office:office" /> > > > > > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

