Migrate Files (extended)

Component ID

2915039

Component name

Migrate Files (extended)

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

175

Component created

Component changed

Component body

Defines additional migrate plugins for file imports:

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.

Basically this process plugin makes it so that you can copy and import your files in one migration rather than having a separate one for Files. When using migrate as an importer for content on an on-going schedule, this can be handy to just grab everything in one fell-swoop.

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.