Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
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:
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>
it doesn't give me a form error when I upload and submit a .mp4 file with a size of 45mb

So what actually happens? - does the submission go through successfully with the 45MB file getting attached?
Or (as I'd reckon is more likely) the page simply dies upon submission?

Please let me know.
2 posts Page 1 of 1