The /file/filter robot allows you to accept only images and display an error to the user if any other file type was chosen. To run this demo, select a non-image file and press the "Upload" button. » See full documentation
"steps": {
"files": {
"robot": "/file/filter",
"accepts": [
["${file.mime}", "regex", "image"]
],
"error_on_decline": true
}
}
$(function() {
$('form').transloadit({
wait: true,
autoSubmit: true
});
});
For demos we allow a maximum of 30MB.
This form is html5-multiupload enabled. If your browser supports it, you can select multiple files and execute the template with them.