Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Migrate Files (extended)

Security covered Maintenance fixes only 8,763 sites

This module provides plugins to import files directly into Drupal during content migrations, even from external sources. It allows files to be downloaded, copied, or referenced by their remote URL, and can even import image-specific metadata. This enables a more streamlined migration process by handling file imports alongside other content data.

Defines additional migrate plugins for importing files.

These plugins are meant to facilitate importing files in the same migration as other data. Typically, with a D7 to D8 migration for example, you would first migrate all your files in a dedicated files migration, and then your nodes after so they can reference the already migrated files. But what if you're just importing nodes from a CSV or external non-drupal API where some of the fields are external file paths? These plugins make it so the files can be imported in the same migration as the rest of the data.

File Import

Imports a file from an local or external source. Files will be downloaded or copied from the source if necessary and a file entity will be created for it. The file can be moved, reused, or set to be automatically renamed if a duplicate exists.

Image Import

Imports an image from an local or external source. Extends the file_import plugin (described above) and adds the following additional optional configuration keys for the image alt, title, width and height attributes.

Remote File Url

Create a file entity with a remote url without downloading the file. It is assumed if you're using this process plugin that you have something in place to properly handle the external uri on the file object (e.g. the Remote Stream Wrapper module).

For all the plugins, see the corresponding plugin class file for a detailed description of the config and examples.

Drupal 9–10 · not 11

Ask your assistant about Migrate Files (extended)

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

  • migrate Drupal core

Required by

2 tracked projects depend on this one

Activity

Tracked releases
4
Tracked since
Jan 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
3.0.0-alpha1 Pre-release 10–11 Nov 22, 2024
3.0.x-dev Dev 10–11 Nov 22, 2024
2.1.3 Stable 9–10 Nov 22, 2024
2.1.2 Stable 9–10 Jan 28, 2023