Hey Daniel, thanks for the Link to the plugin. So there seems to be no native implementation of such behavior in Symfony. My use case doesn't seem to uncommon to me. To bad symfony does not provide support for that.
Sadly there are some dependencies to other deprecated Apostrophe plugins (missing classes pkGuid, pkFiles, pkDimensions), but at least I can use this plugin as inspiration to solve my problem. On 29 Jun., 17:18, Daniel Lohse <[email protected]> wrote: > Hey there, > > although it's obsolete and has been merged into another plugin you could have > a look at > this:http://www.symfony-project.org/plugins/pkPersistentFileUploadPlugin > > Cheers, Daniel > > On 29.06.2010, at 16:23, Philipp Schächtele wrote: > > > I'm currently working on a form where users can post articles for a > > print magazine (Symfony 1.4, Doctrine). Anonym Users can add multiple > > images to the article and submit that. > > > The use case is quite similiar to what is described in the "Advanced > > Forms" Article in the "More with symfony" book ( > >http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-F... > > ), therefore I use a lot of the code from the tutorial. The difference > > is, that users that I only use the "new" and "create" functions of the > > CRUD since people cannot edit their articles after submitting them. > > > My problem is the following: If there are any validation errors in the > > form, the file input field gets cleaned and the user has to choose the > > file again. This is a usability problem since there is no validation > > message or warning to do so (which could be a solution, but not a very > > good one). The user will correct the other validation errors, but will > > probably not realize to choose the file again and submit an article > > without the image. > > > Is there a solution to re-populate the file-input field with the > > original image location or show and use the already uploaded image > > like sfWidgetFormInputFileEditable does for entries, which are already > > saved to the database? > > > -- > > 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 -- 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
