This module sends email notifications when files with specific extensions are uploaded to your Drupal site. You can configure which file types trigger an email, who receives the notifications, and what the email subject and message say, including placeholders for the file URL and the uploader's username.
Media/Document Notifier emails selected recipients when a file with a configured extension becomes permanent. Use it to notify a team when a document or media upload has been saved.
Features
- Filter notifications by file extension.
- Configure up to 50 recipient addresses, an email subject, and a plain-text message.
- Notify when a file is created as permanent or changes from temporary to permanent. Abandoned uploads and later saves of the same permanent file do not send another notification.
- Preserve the original case of recipient addresses and remove exact duplicates.
- Restrict configuration to trusted administrators through the
administer media document notifierpermission.
Installation and configuration
Install with composer require 'drupal/medianotify:^1.0', then enable custom_email_notify. The Drupal File and Media modules are required.
Open Configuration > System > Media/Document Notifier. Enter extensions without dots, comma-separated recipient addresses, the subject, and message. No mail is sent until recipients have been configured.
Message placeholders and file access
[file_url] inserts the absolute file URL. [current-username] inserts the file owner's account name, not necessarily the signed-in user's name. These are literal placeholders provided by this module, not Drupal Token API tokens.
A notification does not grant access to a private file. Recipients must have an account with permission to download it. Files are linked, not attached.
Requirements
Requires Drupal ^10.6 || ^11.3. Use a security-supported core release. The current release has been tested on Drupal 10.6, 11.3, and 11.4.
Ask your assistant about Media/Document Notifier
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.