[symfony-users] Re: file upload example?

2011-06-22 Thread Chris
In beta5 that problem I described is now solved, but there's another one: when preUpload() gets called, the field 'file' is not filled in (reference: http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html) so I have no way to call 'file-guessExtension()'. Any idea?? -- btw I am

Re: [symfony-users] Re: file upload example?

2011-06-22 Thread oscar balladares
Have you try a postPersist event? If that is working, and prePersist not, then you can use the postPersist. If the fileupload returns an exception, then the persist won't be commited anyway. Also, on a postPersist event you have access to the Entity's id, which is very useful for generating an