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
VideoPress: allow users to upload videos from Gutenberg [2] #11194
Comments
Relevant discussion in p9dueE-xm-p2. Uploading videos with the Media Library This is a good indicator of what is going on. So let’s start analyzing how Jetpack uploads videos when using the Media Library. The VideoPress module enqueues some scripts when it detects we are in a page where we can upload files (#). These scripts changes how plupload creates new media items (plupload is the file uploader library used in the media modal). Specifically, it makes an extra AJAX call when we select a video (#) for retrieving a token and a /rest/v1.1/sites/:site/media/new URL (#) that are used as an authorization header and as the new upload URL (#). In other words, videos are uploaded by making a request to https://public-api.wordpress.com/rest/v1.1/sites/:site/media/new that is authenticated with a X_UPLOAD_TOKEN token. That means that we’re actually creating the new media items in WordPress.com. The real issue: /wp/v2/media endpoints Since the request is to the self-hosted site (https://example.com/wp/v2/media) and we don’t have in place any logic for handling these uploads, the video is not transcoded. |
I've updated this support doc to remove references to the Video block, until this is addressed: I've updated this support doc to note that you cannot upload via the Video block until this is addressed: We should revert these changes to our user-facing documentation once this issue has been addressed. Edit to add: Follow up in 2038608-zen once this is fixed. |
confusion about this reported in 2084562-zen |
Likely related to #7073. |
Steps to reproduce the issue
What I expected
The video is processed by VideoPress.
What happened instead
The video has not been processed by VideoPress.
The text was updated successfully, but these errors were encountered: