Automattic / Automattic/jetpack
VideoPress: Uploading large files can result in unexpected behaviour in the resumable uploader
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
### Impacted plugin
Jetpack
### Steps to Reproduce
It is possible this issue can only be replicated during certain network connection issues, for large files. It's also not been replicated since the initial report here: p8oabR-QB-p2#comment-6181
1. Enable VideoPress
2. Create a new post via wp-admin and in the post editor upload a video (10MB) using the video block.
3. Watch the progress in the resumable uploader - it may jump quickly and then appear to be stuck at a certain progress level, later showing a message saying 'An error was encountered during the upload. Check your network connection.'
4. Pressing the 'Try again' results in the same error.
Side note - I attempted to replicate by disconnecting the internet during upload, and while I can technically replicate in that situation, as soon as I reconnect the upload progresses which is expected.
### A clear and concise description of what you expected to happen.
After a network connection error, the video upload should resume and not result in an error that appears related to the network connection.
### What actually happened
_No response_
### Other information
_No response_
### Operating System
macOS
### OS Version
_No response_
### Browser
Firefox
### Browser Version(s)
_No response_
Contributor guide
Research direction
Begin with the Jetpack VideoPress integration in wp-admin and trace the video block's resumable uploader. Try reproducing the 10MB Firefox upload with an interrupted or degraded connection, then compare retry and resume behavior with the expected successful upload. The issue names no source files or tests, so locating the implementation and a suitable regression test is part of the investigation.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100