You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
The text was updated successfully, but these errors were encountered:
vadimkantorov
changed the title
Exporting images, attachments, uploads files actual content
Exporting images, attachments, uploads files' actual content bytes
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 duringwp 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...
The text was updated successfully, but these errors were encountered: