Skip to content

Reusing existing uploads #92

Description

@smerriman

Have just been investigating how this plugin works given the numerous issues with the core importer.

One of my biggest wishes is a better way to migrate uploads. With the current importer - and from what I can tell, this importer as well - every single file has to be manually downloaded with HTTP through the old website, and reuploaded on the new.

Not only is this slow for sites with thousands of uploads, but it also results in loss of all thumbnails. Thumbnails are recreated on the new site at new dimensions only - every thumbnail that was created earlier is lost, which is bad when post content contains numerous references to them. You can't even assume all sizes match the settings in the currently active theme, as that may have changed many times over the years.

When setting up a development site to start building a new theme, I zip up and copy over the wp-content/uploads folder with SSH to ensure you'll never get a 404 for an old image URL. Would it be possible to adjust this importer to first check if the file already exists - in which case, add it from the server rather than as a sideload? This would speed things up immensely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions