In a previous post I talked about wanting to levelrage category aliases to organize files in subfolders of /www/files.
I got this working for the "initial" file add. However I now have two small isses, one maybe a bug.. In my last post I noticed in producion environment when I "delete" a dmFile object, the record is deleted, but the physical file seems to stick around. Perhaps there's something silly on my side, but can anyone confirm this? 2. when processing an object that uses formtools, whats the sequence? I successfully got my files to be uploaded to the "category" based subfolders by extending the BeforeSave function of dmfile and setting the ftdestination dynamically. so I assume BeforeSave is running before the valiation function of formtools/file.cfc? So my new problem... If I "edit" an existing dmfile object and change the categories I use to determine the subfolders, I am not using the file field, so the record is updated, but obviously the file is not moved... so .. I need to figure out how to trick file.cfc in to moving the file. I am doing my manipulation inside the if statement below. <cfif structKeyExists(arguments.stProperties,"filename") AND len(trim(arguments.stProperties.filename))> so it makes sense thet len(....filename) fails .. are the values of the objects properties "before I click save" avaialbe? is there some way for me to say "if the property "subfoldercategory" is different in the forms scope vs. the objects record, then set the filename variable to the what ever is stored (if anything) and go ahead and do the formtools file.cfc... which thn hopefully moves the existing physical file to the new folder? or something like that. any ideas form all you gurus. Obviously I have no idea what I am doing ;) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
