Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

media_library_importer

710 sites Security covered
View on drupal.org

A module to import media files from public directory into media library.

There are a lot of tutorials on how to import file entities into media galleries using migration tools.
But they are neither practical nor easy. This simple module imports your previously uploaded images into media library.

This module can also import unmanaged files. If you simply upload a folder containing images (and subfolders containing other image files) all the image files in the uploaded folders will be converted to media entities.

LATEST NEWS:

  • Now non-image files (pdf,docx,xlsx,pptx amd mp4 files) can also be imported.
  • Since release 2.1.1 this module also embeds the Media Image Exif Importer (media_image_exif_importer) submodule, as Drupal 11 enhancement / upgraded fork of its original Media Entity Image EXIF module which looks declared abandoned by its maintainers and frozen within its compatibility with Drupal 10.

.

Requirements

The module requires the Drupal core Media and Media Library modules.

Since 2.0 it requires additional Queue Ui
contrib module to properly process queue with batch imports.

Instructions

  • Require the module with composer, or unpack the code base in the *modules* folder, currently in the root of your Drupal installation.
  • Enable the module in '/admin/modules', or using the following drush command: drush en media-library;
  • Then, visit '/admin/config/media/media-library-importer-configuration' to configure the module;
  • Last, visit '/admin/config/media/media-library-importer/import' for the actual import operation;
  • It is possible to import Media (according to Media Library Import settings) using the following drush command drush media-library:import or drush mli (alias);
  • It is possible to implement a hook_cron job and run automatic Media Library Imports (incrementally uploading new files in the same source folders locations). More info on this in the Readme.md file;

Note

You can run import as many times as you like without occurring into duplications. Once created, Media entities will not be re-created if already existing with the same source file.

Activity

Total releases
3
First release
Mar 2025
Latest release
10 months ago
Release cadence
44 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
2.1.5 Stable Jun 1, 2025
2.1.4 Stable May 31, 2025
2.1.3 Stable Mar 6, 2025