Re: FIXED: cflock and cfloop question
Please be sure to post the fix that was used so that persons using the archive in the future will be able to troubleshoot their stuff as well. William -- William E. Seiter On May 26, 2010, cfcom wrote: ISSUE IS FIXED - THANKS EVERYONE! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334024 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cflock and cfloop question
How are #current_ListingID# and #currentow# getting set? My guess would be that within your loop over allimages, these are never being changed, so all these copies are to the same destination file... resulting in only the last file in the source directory being in the destination directory. Also, Im not sure what the second cffile-copy is trying to do, but I dont remember being able to copy a directory with cffile (not sure though) On Wed, May 26, 2010 at 4:23 PM, cfcom wrote: > > Am having some un predictable results with a loop. > My code is supposed to copy upload jpegs from a temp folder to the images > Folder. But only one jpeg is being moved from temp folder to images > folder and the loop isn't grabbing any additional pictures. > When the cflock was removed, it grabbed a second image but no more. > Any help would be most appreciated - thank you again in advance. > > > directory="#house_dir#\temp\#client.userID#" name="allimages" > filter="*.jpg"> > > source="#house_dir#\temp\#client.userID#\#name#" > destination="E:\webs\xyz\images_houses_new\#current_ListingID#_#currentr > ow#.jpg" nameconflict="overwrite"> > > destination="E:\webs\xyz\images_houses\#current_ListingID#_#currentrow#. > jpg" nameconflict="overwrite"> > > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334023 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
FIXED: cflock and cfloop question
ISSUE IS FIXED - THANKS EVERYONE! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334021 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cflock and cfloop question
Am having some un predictable results with a loop. My code is supposed to copy upload jpegs from a temp folder to the images Folder. But only one jpeg is being moved from temp folder to images folder and the loop isn't grabbing any additional pictures. When the cflock was removed, it grabbed a second image but no more. Any help would be most appreciated - thank you again in advance. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334016 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm