DataMgr 2.1 Beta
DataMgr 2.1 is now in beta. Aside from fixing one or two small bugs, nothing has changed from the Alpha release.
It take this as a pretty good sign as I changed a fair bit of the inner workings of DataMgr in order to achieve the new features of 2.1. It has been running on several live sites for a few days now without any problems.
I have wrestled with that idea a bit. Ultimately, I think that it would mean having DataMgr handle concerns that it is not meant to handle. Namely, it would then be involved in interacting with the file system instead of just the database.
I have my custom tag set handle that (something similar to your COOP framework). I could certainly create a component that would handle file uploads as well as interact with DataMgr, but cffile's dependence on the Form scope makes that an unattractive option to me right now.
That's right. Your co-processor acts much like a page controller. As such, it makes sense that it handles form-specific actions and translates data from a format for the form to one for the CFC.
In the case of a file upload, that means that it would upload the file and replace that form field value with the name of the uploaded file.
Ideally, cffile should be able to use another scope than form to allow us to upload files from a CFC, but that isn't how it works now.