Creating a FileManager or a FileUploadManager: where does that fit on my dry-erase board? Model? Controller? Both? I think I should have a cfm to make the form, something control level to handle writing the file to disk and store to the DB the file name and other info and then view again to handle displaying the file and surrounding info back to the user. Where does the Model come in? Does it?
Thanks again
~David
On Thu, 2006-05-11 at 11:03 -0400, Brian Kotek 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) 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]
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]
