Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Geocoder 8.x-4.37 Minor update available for module geocoder (8.x-4.37). Release: Workflow Modeler 1.0.9 Minor update available for module modeler (1.0.9). Release: Vite 1.5.6 Minor update available for module vite (1.5.6). Release: Postmark Webhooks 1.2.0 Minor update available for module postmark_webhooks (1.2.0). Release: FileGate 1.10.0 Minor update available for module file_gate (1.10.0). Release: Menu Autopilot 1.4.0 Minor update available for module menu_autopilot (1.4.0). Release: Field Guard 1.3.0 Minor update available for module field_guard (1.3.0). Release: Audit Chain 1.9.0 Minor update available for module audit_chain (1.9.0). Module Revived: Decorative Images 1.3.6 Module decorative_images updated after 7 months of inactivity (1.3.6). Security Coverage: Pixie Dark Theme pixie_dark now has official Drupal security advisory coverage.

Webform File Size Total

No security coverage Drupal 10–11

Part of the Webform ecosystem · 157 projects

View on drupal.org

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.

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
2 hours ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

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