Attachment migration using a local file directory

Created on 15 June 2016, almost 9 years ago
Updated 24 September 2023, over 1 year ago

Is there any way of telling the migration to use a local file source? So if the attachment is at

http://www.foobar.com/image/foo/bar/image.jpg

And I put a folder of images to import into sites/default/files/wordpress/

that have the same subdirectory paths, would it be possible to tell it to look for and find those? At the moment attachments is really the bit that slows down my migration (takes over an hour to do thousands), and I think it's because I'm pulling in every image through http

I was thinking extend WordPressAttachment so that it calls MigrateFileUri with $arguments['source_dir'] set, but I don't actually think it the right place to look. Can anyone point me in the right direction?

πŸ’¬ Support request
Status

Closed: outdated

Version

2.3

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom michaelmallett

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024