Description
Implemented a pre-validation step before starting uploads to filter out files that exceed the maximum upload size allowed for the user’s current tier.
If a file is larger than the allowed limit, a dialog is displayed informing the user about:
- their current upload size limit
- why the upload cannot proceed
- the next available tier required to upload larger files
This prevents invalid uploads from starting and provides clearer upgrade guidance to the user.
Related Issues
Related Pull Requests
Checklist
- Changes have been tested locally.
- Unit tests have been written or updated as necessary.
- The code adheres to the repository's coding standards.
- Relevant documentation has been added or updated.
- No new warnings or errors have been introduced.
- SonarCloud issues have been reviewed and addressed.
- QA Passed
Testing Process
Additional Notes
This can be safely merged. If the server does not provide a maxFileSizeLimit, we allow the upload. The backend will check the file size limit if needed. So, this not affects to the current flow fn until we activate the limit in the backend.