-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UIComponent: Render File Upload: Show Max nr of files and upload size #7306
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @lscharmer,
thanks for looking into this.
Please implement the following changes:
- Output: Please do not construct strings containing meaningful parts in the renderer but instead via the mechanism we have for that: the template. Introduce separate placeholders for the new labels and values, we will also be able to address possible accessibility or styling changes easily then.
79f130c
to
6f041be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @lscharmer
Thx a lot for incorporating @klees requested changes. I just looked over this again, and there are still some questions/remarks about this, before we can merge this:
- this is not yet a mandatory, but we will need to limit our
JavaScriptBindable
components to one top-level HTML element in the future. Is it therefore possible, to move the additional info into the current top-level element? - you are escaping two values of which we certainly know there will be no special characters inside them. Please remove both
htmlspecialchars()
calls.
Kind regards,
@thibsy
6f041be
to
f34f2b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @lscharmer,
Thx for implementing the requested changes.
We noticed you are using the |
character as a separator, which may not be accessibility-friendly and could be flagged in an audit.
Otherwise this LGTM now, so I'll merge this for the time being.
Kind regards,
@thibsy
This PR addresses one part of Mantis Issue: https://mantis.ilias.de/view.php?id=39689
This PR displays the max nr of files and the max upload size below the file input field.
The info list may be extended to show the accepted file extensions in a future PR.