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.

[More]

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
It would be great if we could add to the XML for a data field that it was a "file" field. Thus when the content was loaded in it would be able to handle the content appropriately. I was thinking we could even pass in [fieldname]_file on the form, and create some sort of handler for it. Then upon the existance of a change we could pass it to the dataset as [fieldname] with the actual filename that we are storing.
# Posted By John Farrar | 6/5/07 2:27 AM
John,

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.
# Posted By Steve Bryant | 6/5/07 1:30 PM
So in my case you would just let the co-processor handle the file uploads from forms.
# Posted By John Farrar | 6/6/07 11:59 AM
John,

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.
# Posted By Steve Bryant | 6/6/07 12:20 PM
Stay tuned for version 0.4, it seems to work fine in COOP to send a file to the co-processor. File upload seems to work just fine. More challenging was figuring out how to pass the upload directory to the page. Yet, once resolved it was simple and logical.
# Posted By John Farrar | 6/6/07 8:24 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.8.001.