File validation and moderation
When uploading files to your project, you can validate the types of files you want to accept, and apply various checks after (e.g., virus checking).
Maximum file size
You can set the maximum file size accepted by API up to 5TB (5242880 MB).
The size of the uploaded file is limited by project settings. Configure your validation options in the Validation section.
MIME type filtering
MIME type filtering allows you to control which types of files can be uploaded to your project. By default, all file types are allowed, but you can customize this by selecting specific MIME types to allow or block.
Available categories include:
- Audio
- Documents
- Fonts
- Images
- Video
- Other (includes additional file types not covered in the main categories)
You can also select all file types at once or fine-tune your selection by choosing specific formats within each category.
By default, MIME type filtering is disabled. To enable it:
- Go to the MIME type filtering section in your project settings.
- Select the file types you want to allow or block.
- Save changes to apply the settings.
MIME type filtering is only available on paid plans.
Malware protection
Uploadcare automatically detects infected or malicious files, preventing your users from uploading them and helping you avoid distributing such files. Turning Malware protection on will make sure your app is secure and compliant. All files are checked by ClamAV (open-source antivirus engine).
Read more about malware protection options.
Unsafe content moderation
Detect and identify inappropriate, unwanted, NSFW, or offensive user-generated content in order to enhance user safety, ensure brand integrity, and comply with local and global regulations.
Read more about unsafe content moderation options.
Frontend file validation
Our new File Uploader is easily set up to:
- Limit file size
- Restrict to images only.
- File input accepts attribute value.
Similar validation settings in our jQuery File Uploader:
- Limit file size
- Restrict file type
- Image dimensions
- Image orientation
- File input accept attribute value