Segments do not add up to provided total file size

video
media-upload
api

#1

Problem uploading video using chunking with the error below. The video is 1,398,092 bytes and works fine when uploading via API without using chunking.

media_id: 803724585741021186

Error message:
“request”:"/1.1/media/upload.json",“error”:“Segments do not add up to provided total file size.”


#2

There was a bug in the code where the buffer wasn’t trimmed to the right size after being copied. Close


#3