- Issue created by @fjgarlin
- πΊπΈUnited States danflanagan8 St. Louis, US
fjgarlin β credited danflanagan8 β .
- πΊπΈUnited States mikelutz Michigan, USA
fjgarlin β credited mikelutz β .
- πͺπΈSpain fjgarlin
Resources from that thread.
Migrate conditions: https://www.drupal.org/docs/8/api/migrate-api/migrate-process-plugins/pr... β
Snippet to check local, then remote:
source: constants: # Path changed via hook_migration_plugins_alter # and set via $config['drupalorg_migrate']['project_files']['source'] source_base_path: '/var/www/html/web/files/d7-files' remote_base_path: 'https://drupal.org/sites/default/files' process: local_temp_path: plugin: concat delimiter: / source: - constants/source_base_path - filepath local_full_path: - plugin: callback callable: file_exists source: '@local_temp_path' - plugin: skip_on_empty method: process - plugin: get source: '@local_temp_path' remote_full_path: - plugin: concat delimiter: / source: - constants/remote_base_path - filepath - plugin: urlencode source_full_path: - plugin: null_coalesce source: - '@local_full_path' - '@remote_full_path' uri: plugin: file_copy source: - '@source_full_path' - uri
-
fjgarlin β
committed b395fce5 on 1.0.x
Issue #3455915: Try local file first, otherwise remote.
-
fjgarlin β
committed b395fce5 on 1.0.x
- Status changed to Fixed
6 months ago 10:46am 20 June 2024 - πͺπΈSpain fjgarlin
Migration is running.
- I renamed the folder with the files so they wouldn't be found. Images were downloaded.
- I renamed it back and re-run the migration. Images were copied.Thanks for the help here.
Automatically closed - issue fixed for 2 weeks with no activity.