medianotify
No security coverage
Introduction
Media/Document Notifier sends email notifications when files with configured extensions are uploaded to a Drupal site. The module supports Drupal 9.4+, Drupal 10, and Drupal 11.
Features
- Configure allowed file extensions such as
pdfanddocx. - Configure one or more notification recipients.
- Customize the notification subject and plain-text message.
- Use
[file_url]and[current-username]placeholders in the message body. - Restrict configuration access with the
administer media document notifierpermission.
Installation
composer require 'drupal/medianotify:^1.0' drush en custom_email_notify
Configuration
- Grant
administer media document notifieronly to trusted administrator roles. - Go to Configuration > System > Email Notify Settings.
- Enter allowed file extensions without dots.
- Enter comma-separated recipient email addresses.
- Save the notification subject and message.
Security and maintenance
The module validates configured file extensions and recipient email addresses. Email subjects cannot contain line breaks. Configuration access is protected by a dedicated restricted permission. The project includes Drupal GitLab CI configuration and is maintained for Drupal 9.4, 10, and 11.
License
This project is licensed under GPL-2.0-or-later.