Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Universal File Utils

Security covered Under active development 9 sites

This module provides a system for developers to manage file operations like checking access, downloadability, copying, and removal. It uses event subscribers to allow other modules to control or influence these file actions.

Provides an event-based system for checking file access and file
downloadability plus file copying and removal.

This module does nothing on its own and is for developers to simplify their
task when deciding whether a file can be displayed or downloaded.

Client modules should have event subscribers for either (or both):

  • - UniversalFileDownloadEvent
  • - UniversalFileAccessEvent

The file download event allows a module to decide whether it wants to permit
the download (call `$event->denyDownload()` if not) and can also add headers
if that's needed. An event subscriber will need to be created for that.

The file access event allows a module to decide whether a file (probably an
image) can be viewed or downloaded.

There is a a base event subscriber for this which should be extended, the
client module only needs to provide some data through two methods to decide
whether access is permitted.

Apart from checking download and access, the service also provides the ability
to copy and remove files.

Ask your assistant about Universal File Utils

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

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Aug 2025
Latest release
6 months ago
Releases (12 mo)
3 ▲ from 2
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
3.0.0-beta4 Pre-release 10–11 Mar 16, 2026
3.0.0-beta3 Pre-release 10–11 Mar 15, 2026
3.0.0-beta2 Pre-release 10–11 Feb 16, 2026
3.0.0-beta1 Pre-release 9–11 Aug 27, 2025
2.0.0-beta1 Pre-release 9–11 Aug 27, 2025