>- see footer for list info -<
Set the condition outside and inside the loop:

<cfset bFileExists = FileExists(filePath)>

<cfloop condition="#bFileExists#">

     <cfset bFileExists = FileExists(filePath)>

</cfloop>

See if that works.


On 3/2/06, Lee Fortnam <[EMAIL PROTECTED]> wrote:
> >- see footer for list info -<
> Excuse the bump for this one.
>
> Hi All,
>
> I am uploading a file using the ASFusion flashform component
> (http://www.asfusion.com/blog/entry/file-upload-with-coldfusion-flash-forms)
>
> I am using a trigger on a submit button to submit the file and the form, the
> file starts to upload (depending on size), it gets about half way through
> and then the form submits, the action file the form goes to then uses this
> file to act as the source to import some contact details. If I put a loop on
> the action page saying <cfloop condition="#FileExists(filePath)# NEQ
> 'Yes'">.
>
> This delays the action page doing anything until the actual file has been
> uploaded but the loop is timing out even though the file is there after
> about 5 seconds. The loop continues to go for about another 10 seconds and
> then times out.
>
> It is almost as if the condition is never being met but I have written to an
> audit file the status of #FileExists(filePath)# on each loop and it does
> change but the loop continues. Got me baffled and struggling to see where to
> go with it.
>
> Thanks in advance as usual!!!
>
> Lee Fortnam
> [EMAIL PROTECTED]
>
>
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to
> http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
> >-<
>
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to 
> http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
>


--
Niklas Richardson
Prismix Ltd

UK based Flex and ColdFusion Specialists
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to