Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.43k stars 1.99k forks source link

Feature Request / Feature Parity: Implement Export Media Library on WPCOM Atomic sites #58466

Open JoshuaGoode opened 3 years ago

JoshuaGoode commented 3 years ago

What

Implement Export media library option for WPCOM Atomic Sites. Potentially extend it to Jetpack sites.

Why

WordPress.com Simple sites allow users to export a download of their media library under Calypso's My Site > Tools > Export.

Screen Shot of Calypso's Export media library tool

WordPress.com on Atomic sites do not.

Implementing this would also potentially allow for easy VideoPress downloads. At this time, it's not possible to easily export and download a site's VideoPress content.

Some related internal threads:

Internal GH issue exploring options specifically for VideoPress video exports:

How

The Export media library tool for Simple site appears to export the files stored on files.wordpress.com.

For WPCOM Atomic sites, it would need to export the following.

JoshuaGoode commented 3 years ago

The media export tool used for Simple sites is available and can be used on Atomic sites in its current form if you work around things.

Right now, it's hidden if isJetpack is true: https://github.com/Automattic/wp-calypso/blob/ce378c3322501dee17bd8c1d1af1618b6972e1db/client/my-sites/exporter/section-export.jsx#L32

However, the WPCOM API endpoint is still available. https://public-api.wordpress.com/rest/v1.1/sites/%d/exports/media-download


Testing

I was able to use it on a test Atomic site by setting isJetpack to false.

However, the export file didn’t include recent media uploads to the site, which seems to be expected as those aren’t stored on files.wordpress.com.

It also didn’t include VideoPress videos uploaded while the site was Atomic.

Considerations

Even if the export did include site-hosted media and VideoPress uploads, some export will be quite large and require the use of a download utility. Internally, we've made and used https://github.com/Automattic/download/ - p6OVho-dR-p2

JoshuaGoode commented 3 years ago

If this does become available, and can be used to export VideoPress uploads, let's update a user I worked with that needed this.

donalirl commented 2 years ago

Adding a +1 to this. Ideally, we would also present the same Calypso interface on both simple and atomic to bring parity to both environments and avoid user confusion as a result of the interface changing when they upgrade their plan.

The Tools → Import page already uses the calypso view on atomic sites, so it would be awesome if the Export page appeared the same.

JoshuaGoode commented 2 years ago

VideoPress exports are now possible but only via an internal tool.

Will need work to expose this in Calypso.

github-actions[bot] commented 2 years ago

Support References

This comment is automatically generated. Please do not edit it.

jamiepalatnik commented 2 years ago

+1, user asked about option to download Media in this chat, AT site: 36963391-hc