I have in a form a option to upload a attachment with max_size="512" and allowed_ext='jpeg,jpg,png', but it doesn't give me a form error when I upload and submit a .mp4 file with a size of 45mb. What am i doing wrong?
Form with the attachment part:
Form with the attachment part:
- Code: Select all
<cms:form method="post" enctype="multipart/form-data">
<div class="row">
<div class="col-xs-12 col-sm-12">
<h3>Upload</h3>
<cms:input type='uploadfile' class='form-control form-custom text-input' name='attachment' allowed_ext='jpeg,jpg,png' max_size='512' delete_caption='Delete attachment'/>
</div>
</div>
</cms:form>