Automattic / wp-calypso

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

Error message given when trying to upload a video to VideoPress from wp-admin while site is Private #94335

Open masperber opened 1 month ago

masperber commented 1 month ago

Quick summary

An error message is given when trying to upload a video to VideoPress when the WordPress.com site is set to private.

Steps to reproduce

  1. Set a site to Private.
  2. Ensure that the VideoPress module is active.
  3. Click on Media > Library, or go to {siteurl}/wp-admin/upload.php
  4. Ensure that Grid view is active (because if list view is active, the Add New Media File button will redirect you to {siteurl}/wp-admin/media-new.php and bypass VideoPress)
  5. Click on the Add New Media File button and try to upload any video file.

What you expected to happen

The video should be uploaded either to VideoPress or to the site's upload folder if uploading to VideoPress is not possible while the site is private. An error message should not be given.

What actually happened

An error message is displayed:

{filename}
An error occurred in the upload. Please try again later.

Impact

All

Available workarounds?

Yes, difficult to implement

Edit - Yes, and an easy to implement.

If the above answer is "Yes...", outline the workaround.

To workaround, either make the site public or Coming Soon to upload videos to VideoPress or deactivate the VideoPress module or go to {siteurl}/wp-admin/media-new.php to bypass VideoPress while the site is Private.

Edit - Another workaround is to select "default" view and upload from the calypso media library URL:

Screenshot 2024-09-09 at 12 31 15 PM

Platform (Simple and/or Atomic)

Atomic

Logs or notes

No response

masperber commented 1 month ago

Customer report: 8710353-zd-a8c

github-actions[bot] commented 1 month ago

Support References

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

Addison-Stavlo commented 1 month ago

Tested and confirmed there is an error shown when uploading through wp-admin/upload.php for a private atomic site:

Screenshot 2024-09-09 at 12 30 49 PM

NOTE - Another Available Work-Around (il update above post to mention this): use the default calypso interface for uploading at wordpress.com/meadia/{siteSlug}, which is the default and can also be found and managed from the wp-admin page in the top right:

Screenshot 2024-09-09 at 12 34 28 PM

This work-around seems easier than what was originally mentioned above regarding changing site privacy. When testing this I initially uploaded at the calypso url given following instructions above to Click on Media > Library, and the upload to videopress worked with no errors. Changing to 'classic' interface and uploading from wp-admin did encounter the error.

With the easier work-around, this could be considered less than high priority (as per pciE2j-oG-p2).

masperber commented 1 month ago

My opinion is that this should be considered high priority since migrated, developer, and agency sites are defaulted to use wp-admin view.

Addison-Stavlo commented 1 month ago

My opinion is that this should be considered high priority since migrated, developer, and agency sites are defaulted to use wp-admin view.

Good points. I was back and forth on leaving this high or not, but ended up following the matrix laid out here pciE2j-oG-p2 as its instructed as part of the groundskeeping rotation.

Even if the workaround is difficult, it only recommends high priority if it is experienced by all users. Here it is limited to a subset of users, has one workaround conflated with privacy settings (that is hinted at with the notice above the error), and another simple workaround for others.