Re: Resumable Uploads

Thanks for the additional insights.

And if PATCH is ruled out because how browser APIs, I guess only POST is
> left.


Actually, PATCH could work great if there was an appropiate header to
indicate the offset. Example of resuming an upload that was interrupted
after 20 bytes:

POST /file/my.jpg
Content-Length: 100

<file data … interrupted after 20 bytes>

HEAD /file/my.jpg

HTTP/1.1 200 OK
Offset: 20

PATCH /file/my.jpg
Content-Length: 80
Offset: 20

<file data>

I realize RFC 5789 defines the request body as a "patch document", but it
creates a lot of complexity for this use case.

Cheers,
--
Felix Geisendörfer (felixge.de)
Co-Founder, Transloadit (transloadit.com)

Received on Monday, 22 April 2013 07:58:16 UTC