I'm using the "get an upload session, upload chunks" method. Generally, it's working. I'm using a chunk size of 640 * 1024
, which according to the docs is legit.
Occasionally I'll get a response code of 416 (Requested Range Not Satisfiable)
. The Upload large files with an upload session documentation is not very clear on what to do when I get one:
On failures when the client sent a fragment the server had already received, the server will respond with HTTP 416 Requested Range Not Satisfiable.
I am keeping track in my code of the chunks, which I believe I am doing correctly. Is there another reason I might get a 416
? I will say that I was getting crappy upload speeds from my ISP at this time.
If I do get a 416
, should I just retry it? Or should I ignore it, and believe the docs, that (for some reason) that chunk has already been received?