Post your feature requests and suggestions on our forum Groups
Cont_bg


Uploaded file type and file size validation

We've added several very important validation options to all the File or Image form fields. You can set the file types that you wish your users to upload. You can limit the uploaded file size too.


Validation for field file type

File type validation

You should be able to edit the list of file extensions you would like to allow for upload. Format like '*.ext1;*.ext2;*.ext3' are very important. So, please, try to follow them.

This amazing feature can be useful for you if you need your users only to upload files you need, for example - only word documents or only images.

Here is how the file type validation looks like in action:


file type validation in action

Limit uploaded file size

In simple HTML forms it is impossible to limit the uploaded file size. But in MTH you can have many things which other users have not ever had. So, no wonder, that you can limit the uploaded file size now. Just enter the number representing the limit in megabytes for every upload and you are on the go. Limit it to 100Mb and no one will be able to upload 1Gb files. Remember, that by default our limit is 10Mb

 

Below the Browse file button you will always see a file maximum allowed size:


file size validation

 

In case your users try to upload a file of a bigger size then they will see the following image:


file size error

21.03.2010 Igor Petrushenko


Please, login to MyTaskHelper to be able to post comments
Bookmark!