[symfony-users] file name changed after upload

2008-10-05 Thread julien

Hi,
I have generated an admin backend.
Some fields are type of admin_input_file_tag.
It works fine. Except that the file name is changed.
For instance, uploading fake_article.pdf becomes
1e0d5f6621b2a5a05dffdbfcd787ed31.pdf

Is it possible to keep the original file name?

Thanks,

Julien
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
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
-~--~~~~--~~--~--~---



[symfony-users] Re : [symfony-users] file name changed after upload

2008-10-05 Thread Loïc Vernet
You'll have to override the admin-gen save method of your module or to make 
your own admin generator theme.

++ COil



- Message d'origine 
De : julien [EMAIL PROTECTED]
À : symfony users symfony-users@googlegroups.com
Envoyé le : Dimanche, 5 Octobre 2008, 13h31mn 26s
Objet : [symfony-users] file name changed after upload


Hi,
I have generated an admin backend.
Some fields are type of admin_input_file_tag.
It works fine. Except that the file name is changed.
For instance, uploading fake_article.pdf becomes
1e0d5f6621b2a5a05dffdbfcd787ed31.pdf

Is it possible to keep the original file name?

Thanks,

Julien


  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
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
-~--~~~~--~~--~--~---