Message Boards
AUI Form Validation For file uploads with extension
Tauseef Ahmed, modified 9 Years ago.
AUI Form Validation For file uploads with extension
New Member Posts: 8 Join Date: 10/26/09 Recent Posts
<aui:input type="file" name="field2" >
<!--
For use with input type="file"
Only allow file uploads with this extension.
Specify multiple values either comma delimted 'jpg, png',
whitespace delimited 'jpg png', or pipe 'jpg|png' delimited.
-->
<aui:validator name="acceptFiles">
'jpg, png'
</aui:validator>
</aui:input>
<!--
For use with input type="file"
Only allow file uploads with this extension.
Specify multiple values either comma delimted 'jpg, png',
whitespace delimited 'jpg png', or pipe 'jpg|png' delimited.
-->
<aui:validator name="acceptFiles">
'jpg, png'
</aui:validator>
</aui:input>