Yii Framework Forum: File Upload "required" Validator - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

File Upload "required" Validator Rate Topic: -----

#1 User is offline   Ziggi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 95
  • Joined: 14-August 12

Posted 20 January 2013 - 09:41 AM

Hi,

This is aestetical. There should be a simple way to mark file upload mandatory with "red asterix" as it is in case of any other input.

I mean - I can set:

'allowEmpty' => FALSE, 'on' => 'insert'


but this does not enforce class="required" on the input label.

Sure - it's possible to workaround this through manual styling but... IMHO a "required" parameter should be added to file upload validator to faciliate this issue.

Rgs,
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users