can you confirm this? ... I've read (maybe on Corfield's blog), that CFFILE is actually scope like URL and FORM and thus *is* thread-safe no matter what.
-Dave >>> [EMAIL PROTECTED] 05/11/06 11:42 AM >>> One thing to keep in mind as well is that the CFFILE tag is not thread-safe.. This means that data from one CFFILE operation (say, the result data structure from a CFFILE operation) may inadvertently get carried over to another CFFILE operation between user requests if the object that contains the CFFILE code is cached at startup by your MG application. As such, you don¹t want to instantiate your file upload code in an object that is cached when your MG application starts up. You should instead instantiate a separate object containing the actual CFFILE calls each and every time you need to make a call to CFFILE. (Another) brian on 5/11/06 11:03 AM, Brian Kotek at [EMAIL PROTECTED] wrote: > No. I understand how confusing some of these things can be, but in this case I > think some additional learning and research is in order. A Data Access Object > (DAO) is a very specific kind of object that is part of a design pattern also > called "Data Access Object". A DAO is specifically for abstracting database > interactions. Handling a file upload is not part of the responsibility of a > DAO. For more detail on the DAO pattern, you can Google around, but here is a > starting point: > http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject..html > > I would probably create a FileManager or even a FileUploadManager if the need > is very specific, and have this object encapsulate all behavior related to > handling a file upload. > > Hope that helps! This stuff takes a good long time to wrap your head around > (at least it took/is still taking me a long time). > > Brian > > > On 5/11/06, David Henry <[EMAIL PROTECTED]> wrote: >> >> I am very new to the MVC process for web development. How would I set up a >> file upload that follows the MVC model? Should I create a Data Access Object >> that does cffile operations? Thanks for your help! >> >> ~David >> ---------------------------------------------------------- >> You are subscribed to cfcdev. To unsubscribe, send an email to >> [email protected] with the words 'unsubscribe cfcdev' as the subject of the >> email. >> >> CFCDev is run by CFCZone ( www.cfczone.org <http://www.cfczone.org> ) and >> supported by CFXHosting (www.cfxhosting.com <http://www.cfxhosting.com> ). >> >> An archive of the CFCDev list is available at >> www.mail-archive.com/[email protected] >> <http://www.mail-archive.com/[email protected]> > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email to > [email protected] with the words 'unsubscribe cfcdev' as the subject of the > email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting > (www.cfxhosting.com). > > An archive of the CFCDev list is available at > www.mail-archive.com/[email protected] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected] ----------------------------------------- CONFIDENTIALITY NOTICE: This email and any attachments may contain confidential information that is protected by law and is for the sole use of the individuals or entities to which it is addressed. If you are not the intended recipient, please notify the sender by replying to this email and destroying all copies of the communication and attachments. Further use, disclosure, copying, distribution of, or reliance upon the contents of this email and attachments is strictly prohibited. To contact Albany Medical Center, or for a copy of our privacy practices, please visit us on the Internet at www.amc.edu. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
