Skip to main content

Home/ foograde/ Group items tagged sfValidatorFile

Rss Feed Group items tagged

Adán Muguiro

Reteniendo el nombre original del archivo al subirse. - 0 views

  •  
    El sfValidatorFile modifica el nombre del archivo a un hash de números locos, si no queremos esto y conservar el nombre del archivo se puede leer esto.
Fernando Vega

Crear minuaturas por medio de una ruta - 1 views

public function configure() { $file_src = sfContext::getInstance()->getController()->genUrl(array( 'sf_route' => 'sf_image', 'format' => 'backend_edit', 'filepath' => '/ba...

started by Fernando Vega on 20 Oct 10 no follow-up yet
Fernando Vega

Uploaded docx files turning into zip - Stack Overflow - 0 views

  • $this->validatorSchema['file_name'] = new sfValidatorFile(array('required'   => true,'path'       => sfConfig::get('sf_upload_dir').DIRECTORY_SEPARATOR.sfConfig::get('app_dir_file_sharing').DIRECTORY_SEPARATOR,'mime_type_guessers' => array('guessFromFileinfo'),'mime_types' => array('application/msword',                    'application/vnd.ms-word',                    'application/msword',                    'application/msword; charset=binary')), array(    'invalid'    => 'Invalid file.',    'required'   => 'Select a file to upload.',    'mime_types' => 'The file must be a supported type.'));
    • Fernando Vega
       
      Subir y validar archivos en formato word 2007 en symfony
1 - 3 of 3
Showing 20 items per page