[symfony-users] sfWidgetFormInputFileEditable dont delete file when is in form embeded by embedRelation

2010-10-09 Thread gabrielms7
Can somebody tell me if the Ticket #8500 is already solved? This defect is explained in: http://trac.symfony-project.org/ticket/8500 Please help me!!! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because

[symfony-users] sfWidgetFormInputFileEditable: where is the code that removes the file?

2010-06-03 Thread Javier Garcia
Hi, by default, when you replace a file using sfWidgetFormInputFileEditable, the old file is removed from your hard disk. Where is that code that removes the file?? -- Javi Ubuntu 8.04 - Symfony 1.3 -- If you want to report a vulnerability issue on symfony, please send it to security at sy

[symfony-users] sfWidgetFormInputFileEditable

2010-03-05 Thread MoUeTtE
Hi there, I just migrated to symfony 1.3, so that could be part of the explanation, but I can't use the sfWidgetFormInputFileEditable. in fact, everything seems to go right as field is displayed, but I've got an empty value in my doSave method. the way I configured my form is the following:

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2010-01-08 Thread Daniel Lohse
You're welcome and I'm glad, that is does! :) Cheers, Daniel On Jan 8, 2010, at 5:42 PM, g0d br wrote: > That works Daniel. > > Thank You > > On Fri, Jan 8, 2010 at 7:46 AM, Daniel Lohse > wrote: > Set the validator for this specific field like this: > > $this->validatorSchema['imagem

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2010-01-08 Thread g0d br
That works Daniel. Thank You On Fri, Jan 8, 2010 at 7:46 AM, Daniel Lohse wrote: > Set the validator for this specific field like this: > > $this->validatorSchema['imagem'] = new sfValidatorFile(array( > 'required' => $this->isNew(), > 'path' => ... > ... > )); > > So the field is only required

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2010-01-08 Thread Daniel Lohse
Set the validator for this specific field like this: $this->validatorSchema['imagem'] = new sfValidatorFile(array( 'required' => $this->isNew(), 'path' => ... ... )); So the field is only required when it's a new object. Is that what

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2010-01-07 Thread g0d br
Hi, I still having this problem. Im using sfWidgetFormInputFileEditable for a backend form and when i edit the record with the image i have to choose the image file again otherwise i get required error for the file. the problem is that i don wanna change the file but every time i have to choose

Re: [symfony-users] sfWidgetFormInputFileEditable no updating the file when edit

2009-12-29 Thread Alexandru-Emil Lupu
Sorry. That has to be in your model class Alecs sent via htc magic On Dec 29, 2009 9:05 PM, "Alexandru-Emil Lupu" wrote: Override your delete method to: Public function delete(PropelPDO/ DoctrinePDO $con = null) { @unlink($this->getFilePath()); Parent::delete($con); } Or appropriate to f

Re: [symfony-users] sfWidgetFormInputFileEditable no updating the file when edit

2009-12-29 Thread Alexandru-Emil Lupu
Override your delete method to: Public function delete(PropelPDO/ DoctrinePDO $con = null) { @unlink($this->getFilePath()); Parent::delete($con); } Or appropriate to fix full path to the file, and also the appropriate db adaptor. Alecs sent via htc magic On Dec 29, 2009 7:44 PM, "ilcaduceo"

[symfony-users] sfWidgetFormInputFileEditable no updating the file when edit

2009-12-29 Thread ilcaduceo
Hi all, I'm using the sfWidgetFormInputFileEditable for simple uploading of file in the filesystem and then storing name in the database associated with a model, but I noticed that when I'm editing/ deleting the model the old images remain in the filesystem... I want that when edit the image in the

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2009-12-11 Thread g0d br
i get the error when i try to edit an record. create and delete works fine but if i try to edit an record and dont select any file when i hit save the required error appears. Thanks Celso On Fri, Dec 11, 2009 at 5:11 AM, Alexandru-Emil Lupu wrote: > When you get that required error? Better wha

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2009-12-10 Thread Alexandru-Emil Lupu
When you get that required error? Better what are you trying to achieve? sent via htc magic On Dec 11, 2009 1:11 AM, "g0d br" wrote: Hi, I have an schema like this: banner: id: ~ ordem: { type: integer, required: true } imagem: { type: varchar(255), required: true } link: { ty

[symfony-users] sfWidgetFormInputFileEditable admin required file

2009-12-10 Thread g0d br
Hi, I have an schema like this: banner: id: ~ ordem: { type: integer, required: true } imagem: { type: varchar(255), required: true } link: { type: varchar(255), required: false } When i edit an record in admin module i get an error Required for imagem field. Thats the code in B

[symfony-users] sfWidgetFormInputFileEditable delete checkbox class

2009-04-02 Thread HAUSa
When I use sfWidgetFormInputFileEditable, there automatically shows a "delete current file" checkbox in the edit action. This my code: $this->widgetSchema['logo'] = new sfWidgetFormInputFileEditable(array ( 'file_src' => '/uploads/studies/' . $this->

[symfony-users] sfWidgetFormInputFileEditable - unexpected field

2008-10-31 Thread adrive
Hello. I would like to use sfWidgetFormInputFileEditable with the delete feature, but I am wondering how. When I try it, I get an error: Unexpected extra form field named "image_delete". That's because the additional fields that are generated by the FE Widget are not registered in the sfForm: