We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Add the class hijack-upload:
<?php $this->addElement('file', 'avatar', array( 'class' => 'hijack-upload', 'label' => 'Avatar' )); ?>
You can configure the following:
<?php 'data-type' => Garp_File::TYPE_DOCUMENTS, 'data-allowed-extensions' => 'pdf', 'data-max-file-size' => 10, 'data-max-files' => 1, ?>
File-size is in MB.