[symfony-users] The More with symfony book Advanced Forms - Delete image

2010-07-14 Thread joericochuyt
regarding this tutorial: 
http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms
How to delete an uploaded image?

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] The More with symfony book Advanced Forms - Delete image

2010-07-14 Thread Daniel Lohse
Look at the block of PHP code just before the subheading Form Events. There 
you'll find that they set the with_delete option to false – set this to true 
and add the filename_delete validator with an sfValidatorPass class (you can 
look that up here: 
http://www.symfony-project.org/api/1_4/sfWidgetFormInputFileEditable#method_configure).

Then the user can check the Delete checkbox and upon saving of the form the 
file is deleted. :)


Cheers, Daniel



On 14.07.2010, at 01:51, joericochuyt wrote:

 regarding this tutorial: 
 http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms
 How to delete an uploaded image?
 
 -- 
 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 symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en