It's pretty useful when you have two files with the same name uploaded. You can get the original filename via sfValidatedFile->getOriginalName() An instance of sfValidatedFile is returned by sfValidatorFile by default.
On Mon, Mar 30, 2009 at 11:51, HAUSa <[email protected]> wrote: > > When I upload a file using sfWidgetFormInputFile() and sfValidatorFile > (), it gets some sort of MD5 / SHA1 filename. For example, > cf95672e445d03249959d832441ff5095b6b6d12.docx. > > Is it possible to keep the original file name, eventually slugified? > > Example: > Upload: our marketing plan.docx > File: our-marketing-plan.docx > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
