title: symfony 1.4 process file after upload in form, doesn't sends data to DB, but it saves file in disk
body: <p>I have a form with a sfWidgetFormInputFile field.
  I'm uploading images, and after the upload, I would like to do some processing to the file just uploaded.</p>
  
  <p>I know I can use a validated_file_class for this. I'm overwritting the save() method in my custom class, and the file gets correctly saved but the storing in the database doesn't works, it just sends me null values for the filename field. Am I missing something?</p>
  
  <p>Here is the relevant code:</p>
  
  <pre><code>class MyForm extends BaseMyForm
  {
    public function configure()
    {
      $this-&gt;widgetSchema['image'] = new sfWidgetFormInputFile();
      $this-&gt;validatorSchema['image'] = new sfValidatorFile(array(
                                           'required' =&gt; true,
                                           'path' =&gt; sfConfig('sf_upload_dir'),
                                           'mime_types' =&gt; 'web_images',
                                           'validated_file_class' =&gt; 'MyCustomValidatedFile'
                                                            ));
    }
  }
  
  class MyCustomValidatedFile extends sfValidatedFile
  {
    public function save($file = null, $fileMode = 0666, $create = true, $dirMode = 0777)
    {
      parent::save($file, $fileMode, $create, $dirMode);
    }
  }
  </code></pre>