How to Configure File Parameters?
Configuring files allows you to set limits for file uploads to the system, such as maximum file size and allowed file types.
When You'll Need This
- You need to set the maximum file size that can be uploaded to the system.
- You need to limit file types that can be uploaded (for example, only images or documents).
- You need to configure file storage parameters.
What's Important to Know
- Maximum file size — size in megabytes (MB) that cannot be exceeded when uploading.
- Allowed file types — list of file extensions (for example,
.jpg,.png,.pdf) that are allowed to be uploaded. - Limitations — applied to all operators in the system.
Before You Start
You are logged in with administrator or supervisor rights. You have permission to save settings ( canSave).
Step-by-Step Instructions
1. Open File Settings
- Go to the Settings module through the menu or directly at
/settings-page. - In the side menu, find the "Settings" section and expand it.
- Click on "File Settings" (
/settings-page/op-settings/files).
2. Configure Maximum File Size
- Find the "Maximum File Size" field (in megabytes).
- Enter the desired value (for example, 10 for 10 MB).
- The system validates the value and shows an error if it's invalid.
3. Configure Allowed File Types
- Find the "Allowed File Types" field or list of extensions.
- Specify file extensions that are allowed to be uploaded (for example,
.jpg,.png,.pdf,.doc,.docx). - You can specify multiple types separated by commas or select from a list.
4. Configure Other Parameters (if available)
- Review other available file settings parameters.
- Configure them according to your needs.
5. Save Settings
- Verify all changes made.
- Click the "Save" button at the top of the page.
- Wait for a message about successful saving.
What Happens Next
Limitations are applied to all operators in the system:
- When trying to upload a file that exceeds the maximum size, the system shows an error.
- When trying to upload a file of a disallowed type, the system shows an error.
- Operators see limitations when uploading files.
How to Verify Everything Worked
- Try uploading a file that exceeds the maximum size — the system should show an error.
- Try uploading a file of a disallowed type — the system should show an error.
- Try uploading a file that meets the limitations — upload should succeed.