Solvi Documentation > CSS and JS > File validation
About Solvi
Introduction
Full Features
Installation
Prerequisite
Setup & Installation
Table or Grid
Basic Usage
Disable Column Sorting
Disable Column Export
Change Search Placeholder
Custom Column Template
Add Buttons to Action Column
Hyperlink Column Text
Specific Roles to View Column
Add or remove column
Filter column
CSS and JS
Edit Color
File validation
General
Password Validation
Bulk Import
Other
Current file validation
When a user uploads a file in the import section, the validateFile()
function will ensure the following:
- File Extension: The file must be an Excel file.
- File Size: The file size must be less than 15 MB.
- File Name: The file name cannot contain special characters.
Change the validation
- The validation rules and error messages can be customized to suit your needs.
- To make changes, edit the code in:
/wwwroot/js/filevalidation.js
> validateFile()