Addition of SITA_FILE_UPLOAD_LIMIT
The SITA_FILE_UPLOAD_LIMIT is a special setting that has been added to several configuration files. It will determine how many files can be uploaded at once on the platform. For regular users and for example purposes, this limit is set to 20, and for testing purposes, it's set to 5.
File Validation Rule Update
The system in charge of controlling member documents (MemberSupportingDocumentController.php) has been updated. Now, it makes use of the SITA_FILE_UPLOAD_LIMIT to validate how many files a user can simultaneously upload.
Sharing Upload Limit
The file upload limit is now shared across the platform through HandleInertiaRequests.php. This improved data sharing allows all parts of the platform to consistently respect the file upload limit.
Default Upload Limit in Services
In the services configuration file (services.php), a new section has been added for sita, where a default file upload limit of 5 has been set. This is the fallback limit if no other is specified.
File Change Handling in VueJS
Our user interface (MemberDocuments.vue) now incorporates a mechanism to handle file input changes. If a user tries to upload more than the specified limit, the system will validate and prevent such occurrences based on the sita_file_upload_limit value.
File Upload Limit Test Case
A new test has been added in MemberSupportingDocumentTest.php. The goal of this test is to verify if the platform correctly adapts to the specified file upload limit.
Description
Related to #270
Improve UX by speeding up validation on the client side
Added new .env variable to set the upload size (but requires updates to nginx and php.ini before Laravel can do validations)
The default upload limit is 5 which is used for testing the limit
How has this been tested?
Upload limit test added
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist
[ ] My code fulfills the acceptance criteria.
[ ] My change requires a change to the documentation.
Description Summary
Addition of
SITA_FILE_UPLOAD_LIMIT
TheSITA_FILE_UPLOAD_LIMIT
is a special setting that has been added to several configuration files. It will determine how many files can be uploaded at once on the platform. For regular users and for example purposes, this limit is set to20
, and for testing purposes, it's set to5
.File Validation Rule Update The system in charge of controlling member documents (
MemberSupportingDocumentController.php
) has been updated. Now, it makes use of theSITA_FILE_UPLOAD_LIMIT
to validate how many files a user can simultaneously upload.Sharing Upload Limit The file upload limit is now shared across the platform through
HandleInertiaRequests.php
. This improved data sharing allows all parts of the platform to consistently respect the file upload limit.Default Upload Limit in Services In the services configuration file (
services.php
), a new section has been added forsita
, where a default file upload limit of5
has been set. This is the fallback limit if no other is specified.File Change Handling in VueJS Our user interface (
MemberDocuments.vue
) now incorporates a mechanism to handle file input changes. If a user tries to upload more than the specified limit, the system will validate and prevent such occurrences based on thesita_file_upload_limit
value.File Upload Limit Test Case A new test has been added in
MemberSupportingDocumentTest.php
. The goal of this test is to verify if the platform correctly adapts to the specified file upload limit.Description
Related to #270 Improve UX by speeding up validation on the client side Added new .env variable to set the upload size (but requires updates to nginx and php.ini before Laravel can do validations) The default upload limit is 5 which is used for testing the limit
How has this been tested?
Upload limit test added
Types of changes
Checklist