Information message for file uploads is confusing when form limit is enabled

Created on 20 March 2024, 3 months ago
Updated 9 April 2024, 3 months ago

Problem/Motivation

A file upload element always has an information message describing what the upload limit is.
When a form has a total upload limit, this is also shown. This results in confusing issues:

So the single file can be larger than the weboform total limit. This is confusing to the user.

Steps to reproduce

* Add a file element to a form
* Set an upload limit for the form

Proposed resolution

When a form upload limit is set, unset the information message for the single file limit and replace it with a form-wide message:
Default: "XXX limit per file. The accumulated size of all files in this form cannot exceed XXX"
But if the file limit is heigher than the form limit, omit the file limit, because you will never be able to use it:
"The accumulated size of all files in this form cannot exceed XXX"

πŸ“Œ Task
Status

Needs work

Version

6.2

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands JoshaHubbers

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024