Hi all,
Simple question. I want to enable my users to fill form with Logo upload,
but not required.
In my create.yml validator file;
logo:
file: True
required: no
sfFileValidator:
mime_types:
- 'image/jpeg'
- 'image/png'
- 'image/x-png'
- 'image/pjpeg'
mime_types_error: Зөвхөн PNG болон JPEG төрлийн зураг байх хэрэгтэй
max_size: 15000
max_size_error: Логоны хэмжээ 15Kb-хэтрэхгүй байвал зохино
When user submit form without selecting any logo file, it still check for
file and gives empty error. Even i specified it NOT Required.
Any suggestion.
Thanks in advance.
--
Bayarsaikhan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---