All pastes #610116 Raw Edit

Mine

public php v1 · immutable
·published 2007-07-09 08:22 UTC
rendered paste body
Dans l'action :executeUpdateBrouillon()handleErrorUpdateBrouillon()Dans la template :<?php echo form_error('photo') ?><?php echo input_file_tag('photo') ?>Le fichier updateBrouillon.yml :methods:  [post]names:  photo:      file:     True    sfFileValidator:      mime_types:        - 'image/jpeg'        - 'image/jpg'        - 'image/png'        - 'image/x-png'        - 'image/pjpeg'        - 'image/bmp'        - 'image/gif'        - 'image/tiff'      mime_types_error: Seuls les formats d'image PNG, JPEG, BMP, GIG, TIF sont autorisés      max_size:         512000      max_size_error:   Max size is 512Kb