FOUR-10833: Update warning messages for file upload(s) #5414
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
The primary issue is when a request participant attempts to upload a file of a type not allowed in a form upload field where it is not allowed. The previous warning was "File not allowed." and has been updated to "This file type is not accepted.".
Additionally, for the webentry warning message, the class of the notification (eg. "info", "danger") was being concatenated and used as a prefix for the warning message, changing it to "danger: File not allowed". The concatenation has been removed and only the update warning message ("This file type is not accepted.") should appear.
Requirements
Use this branch for core and the
feature/FOUR-10833
branch for screen-builder.Issue Reproduction Steps
Solution
How to Test
Related Tickets & Packages
Code Review Checklist