http-extensions icon indicating copy to clipboard operation
http-extensions copied to clipboard

Hashes of uploaded files

Open Acconut opened this issue 2 years ago • 2 comments

At IETF 115, Hans-Jörg Happel mentioned the idea of an extension to add checksum mechanism to resumable uploads.

One option is that the server calculates a checksum of completed uploads and provides it to the client, which can compare this checksum with an expected value. If the values do not match, the client can error out or retry the upload.

Another option is that the client tells the server the expected checksum in the beginning, and the server verifies the checksum once the upload is complete.

Acconut avatar Feb 15 '23 23:02 Acconut

HTTP digests can probably deal with both of these options. I would be resistant to implementing something new just for resumable uploads.

The question for me is how much, if at all, resumable uploads should discuss this kind of scenario. Maybe just mentioning the possibility of HTTP digeat, or maybe some examples if the sequence if messages is non-obvious. But we should try to keep text lean IMO.

LPardue avatar Feb 16 '23 00:02 LPardue

HTTP digests seems to fit very well here. There is also some discussion in https://lists.w3.org/Archives/Public/ietf-http-wg/2023JulSep/0067.html around this topic.

Maybe just mentioning the possibility of HTTP digeat, or maybe some examples if the sequence if messages is non-obvious. But we should try to keep text lean IMO.

I agree. Such a mention and a few examples should be sufficient.

Acconut avatar Aug 09 '23 17:08 Acconut