Hacker News new | ask | show | jobs
by eximius 2771 days ago
Is there a TL;DR? I see the whole spec is there but I don't have time to read it just this second.

Does it use anything fancy like fountain codes or does it just renegotiate chunks each time or something else?

2 comments

The latter.

1. The client POSTs, this allocates a unique Location which the server returns and

2. the client saves this (e.g. in localStorage) along with local file identifiers so it can be looked up later and can

3. query that URL to check how many bytes were already received, and then

4. PATCH the remaining bytes

Repeat step 3 & 4 on failures/resumes.

You basically just send the offset when you resume the upload.