php - Validating a video upload in the Symfony Admin Generator -


When using the admin generator to upload a video, my form is working quite oddly.

If the file is too large, which means it is larger than the PHP upload limit, the form displays the first error in the edit.yml file, or no error.

My administrator generator defines the video in the following way

  video_filename: help: video should be .flv or .mp4 Files up to 32 MB can be uploaded. Type: admin_input_file_tag upload_dir: Video parameter: include_remove = true include_text = video  

I have tried to add sfFileValidator to no avail.

  items [video_filename]: SfFileValidator: max_size: 512000 max_size_error: max size is 512Kb  

Does the admin generator detect PHP error and allow user more Can a useful error?

You can change the error_reporting setting in config.yml on your app / It can help


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -