Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Webform File Size Total

No security coverage Under active development

Part of the Webform ecosystem · 223 projects

This module adds an element to Webform that displays a running total of attached file sizes. It can warn or block users when a size limit is reached and stores the total with the submission.

Adds an Attachment size total element to the webform element library. Place it anywhere on a webform to show the customer a live running total of the size of every file they have attached, and warn or block them once a size threshold is reached.

Built for Drupal 11.3, Webform 6.3, PHP 8.3. Requires Drupal 10.3+ / 11 and the Webform module.

What it does

  • Counts every File upload element on the page, including uploads nested inside composite elements and multiple-value elements (5 or 50 of them, it does not matter - a single element can hold many files and every instance is counted).
  • Counts media references as a best effort too (media library and media entity reference elements), resolving each media item back to its source file.
  • Updates the moment a file is chosen - before the AJAX upload has even finished - and again when a file is removed or a composite row is added.
  • Counts either just this page or the whole submission, per element - a multi-page (wizard) form can show a total that includes the files attached on earlier pages.
  • Is positionable: the designer drags it wherever they want on the *Build* tab, like any other element.
  • Fires thresholds at configurable sizes, each of which can show a message, add a CSS class, dispatch a JavaScript event, and optionally block submission.
  • Stores the total (in bytes) on the submission, so it shows in submission views, exports and reports.
Drupal 10–11

Ask your assistant about Webform File Size Total

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.0 Stable 10–11 Sep 19, 2026