Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting images, attachments, uploads files' actual content bytes #118

Open
vadimkantorov opened this issue Nov 8, 2024 · 0 comments
Open

Comments

@vadimkantorov
Copy link

vadimkantorov commented Nov 8, 2024

It would be good to have a way to actually include all files' content in the XML as CDATA/base64 (or data-uri) - maybe could be very easy as iteration over all files in wp-uploads and serializing them as CDATA. The WXR size might implode, but this can be okay for import/export and there is benefit in keeping the full archive in a single, self-contained archive file. An alternative could be optionally also producing a sidecar ZIP file containing all the images, attachments, uploads etc (and allowing to specify it during wp import). But having a single-file export/import feature is super nice, and would be a simpler format for other blog platforms to support for interop.

This is useful for export/import scenarios, and batch importing content from third-party blogging platforms.

If this is already implemented, it would be nice to have a more clear description of what happens with images' bytes to https://developer.wordpress.org/cli/commands/export/ . And even if this is not implemented, it would be great to have some discussion of how to import/export files actual file bytes for the time being...

@vadimkantorov vadimkantorov changed the title Exporting images, attachments, uploads files actual content Exporting images, attachments, uploads files' actual content bytes Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants