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.

<CFLOCK TIMEOUT="20" THROWONTIMEOUT="YES" TYPE="EXCLUSIVE" SCOPE="SERVER">
                <cfdirectory action="LIST"
directory="#house_dir#\temp\#client.userID#" name="allimages"
filter="*.jpg">
                <CFLOOP query="allimages">
                        <cffile action="copy"
source="#house_dir#\temp\#client.userID#\#name#"
destination="E:\webs\xyz\images_houses_new\#current_ListingID#_#currentr
ow#.jpg"   nameconflict="overwrite"> 
            
            <cffile action="copy" source="#house_dir#\temp\#client.userID#"
destination="E:\webs\xyz\images_houses\#current_ListingID#_#currentrow#.
jpg"  nameconflict="overwrite">
        
                </CFLOOP>
        </CFLOCK>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Reply via email to