Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Lightning Media

5,549 sites Security covered Drupal 10–11
View on drupal.org

Lightning Media enhances media management in Drupal by providing pre-configured media types for various content, including audio, documents, images, Instagram posts, tweets, and remote videos. It also offers bulk upload capabilities, aiming to improve the authoring experience.

Lightning Media provides modules and configuration for great media authoring experiences.

Lightning Media 5.0.0

WARNING: Lightning Media 5.0.0 drops all hard dependencies on contributed modules, as well as all previous update paths. Read the release notes before upgrading to it, or you may break your site!

A note about chunked uploads

Certain hosting providers (including Acquia Cloud Enterprise) are not compatible with the drag-and-drop upload provided by DropzoneJS, which is packaged with Lightning Media 4. There is Acquia-specific documentation explaining how to work around this problem or, for non-Acquia users, a patch for DropzoneJS to support chunked uploads.

Components

Lightning Media's components are not enabled by default. You can install them like any other Drupal modules.

Media Audio (lightning_media_audio)

Provides an Audio file media type, which can be used to store and play audio files like MP3s, WAVs, or AACs.

Bulk Media Upload (lightning_media_bulk_upload)

Leverages the DropzoneJS module to provide a form for uploading media assets in bulk.

Media Document (lightning_media_document)

Provides a Document media type, which can be used for storing files, such as PDFs, or other types of documents.

Media Image (lightning_media_image)

Provides an Image media type, which can be used for storing and displaying images. If the Image Widget Crop module is installed, the Image media type will automatically integrate with it to provide cropping functionality.

Media Instagram (lightning_media_instagram)

Provides an Instagram media type, for referencing and displaying Instagram posts in your Drupal site using the Media Entity Instagram module.

Media Twitter (lightning_media_twitter)

Provides a Tweet media type, for referencing and displaying tweets in your Drupal site using the Media Entity Twitter module.

Media Video (lightning_media_video)

Provides a Video media type for displaying remote videos (e.g., YouTube or Vimeo) in your Drupal site using the Video Embed Field module.

Installation

This component can only be installed using Composer. To add it to your Drupal code base:

# Add Drupal's packagist.
composer config repositories.drupal composer https://packages.drupal.org/8

# Add the Asset Packagist for front-end dependencies.
composer config repositories.asset-packagist composer https://asset-packagist.org

# Add Lightning Media.
composer require drupal/lightning_media

Then install the module as you would any other Drupal module. Note that Lightning Media (lightning_media) doesn't provide any media types out of the box. You will also need to enable at least one of the following sub-modules:

  • Lightning Media Audio (lightning_media_audio)
  • Lightning Media Document (lightning_media_document)
  • Lightning Media Image (lightning_media_image)
  • Lightning Media Instagram (lightning_media_instagram)
  • Lightning Media Twitter (lightning_media_twitter)
  • Lightning Media Video (lightning_media_video)

If you want the ability to bulk upload images for media entities, you should also enable the Lightning Media Bulk Upload (lightning_media_bulk_upload) module.

Updates

Lightning Media and its components use the normal Drupal database update system as often as possible. However, there are occasionally certain updates which touch configuration and may change the functionality of your site. These updates are optional, and are performed by a special utility at the command line. This utility is compatible with Drush 9 or later.

To run updates using Drush:

drush update:lightning

Known Issues

  • If you upload an image into an image field using the new image browser, you can set the image's alt text at upload time, but that text will not be replicated to the image field. This is due to a limitation of Entity Browser's API.
  • Using the bulk upload feature in environments with a load balancer might result in some images not being saved.

Depends on

Dependencies of the latest stable release

  • image Drupal core
  • media_library Drupal core
  • user Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Dec 2025
Latest release
8 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
5.1.0 Stable 10–11 Dec 30, 2025