Hello,
I am trying to implement chunked upload utilizing HTTP requests and find myself in trouble with chunked upload.
The upload itself seems to work fine, i am able to go through the flow and receive 200 response and uploaded files metadata after calling commit_chunked_upload, however the uploaded file(s) seem(s) to be corrupted.
Tested chunked upload with:
.mp4 video - unable to preview, when downloaded unable to view properly
.psd file - unable to preview, when downloaded unable to view properly
.pdf file - unable to preview, when downloaded, surprisingly opens up just fine.
I am uploading in 4MB (4*1024*1024) chunks and noticed when debugging that returned offset is larger than the chunk that im sending, for instance
chunk returned offset
4194304 4194507
4194304 8389010
etc.
chunks are sent as PUT requests body
What could possible be causing the problem that files become corrupted (im guessing)?