That or file uploads typically aren't real high-load operations (at least
not in my experience), so people haven't been bitten by the lack of thread
safety. We're rebuilding a document management system right now in CFCs,
and a part of that is file uploads. This thread could not have been more
timely. We hadn't had any problems with CFC-based file uploads in the
"hash-it-out" phase, but we haven't load tested yet, assuming (wrongly) that
proper scoping will handle thread concurrency.
Well, if you move the actual <cffile> operation to a separate CFC and instantiate that for every method call, you'll be fine (or <cfinvoke component="name" method="doUpload" ...>).
Sean A Corfield -- http://www.corfield.org/blog/
"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man."
-- George Bernard Shaw
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
