Affects Version/s: 3.4.7
Fix Version/s: None
Component/s: Files API
We have a user that put a large video file (4gb). When students were seeing this video, we had a problem that, using chorme, pluginfile.php didn't always sent chunks of this video. Chrome sent this header, exemple :
And from moodle we had this header :
Content-Range: bytes 1441792-4819313765/4819313765
After investigating, we arrive at lib/filelib.php at function byteserving_send_file (line 2558):
That if don't check if length of file is greater than chunksize. On our case, we had a lot of request of full size of file instead of chunks.
On my test I forced that we always sent chuks instead of full size :
Hope that this can be sorted.
Thanks in advance