Hi,
I'm trying to figure out the best method for uploading a number of files along with entering some data into a database using a component containing CRUD methods.
I have the following file structure:
index.cfm - Controller file
- display /
- create_update.cfm - Contains form for creating and updating a project
com /
- projects.cfc - Projects component containing CRUD methods for the project.
Previously i would have uploaded the files using the cffile function within one of the views or the controller file. What i'm thinking now is that perhaps the best place for this functionality is in the projects component. Is this correct?
Once i have sorted that, I am then left with the problem of how best to upload the files from the users point of view, should i do it all on one page where the user enters the data and chooses the files to upload and then presses submit, or should i break it up over a number of pages?
I guess what I'm asking is how would you do it?
Thanks,
Chromis