After some digging, I see that the hashed filename had nothing at all to do with the csDoctrineActAsAttachablePlugin, but is just the standard behavior of the sfValidatedFile->generateFilename method. However, before letting sfValidatedFile default to this behavior, sfFormDoctrine checks the form and the form's object for a "generate[camelizedFieldName]Filename" method, and will use that if it exists. So I just added a generateUrlFilename method to my Attachment model, and all is well.
On Mar 2, 2:12 pm, forkmantis <[email protected]> wrote: > Hello. > > I'm using csDoctrineActAsAttachablePlugin in my project. I like it, > but I would prefer to use slugs for my filenames rather than the > default hashed filenames. I've looked through the code for a while > now, but I cannot figure out where the hashes are coming from or how > to override that behavior to set the filenames the way I want to set > them. Can anyone point me in the right direction? > > will killian -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en
