RESUMABLE: Allow max-age limit to decrease as expected#3408
Conversation
Co-authored-by: Lucas Pardue <lucas@lucaspardue.com>
|
I added a |
min-size and max-size apply at the creation time of the upload resource. Changing its values after the resource has been created shouldn't affect the client's ability to complete the upload. Should we remove the mention of min-size and max-size from this paragraph, which talks about limit changes during the upload resource's timeline? |
|
I believe it could affect the client's ability to complete the upload. If the client says |
|
My previous comment isn't entirely correct because max-size can also be applied after the upload creation:
(from https://www.ietf.org/archive/id/draft-ietf-httpbis-resumable-upload-11.html#section-4.1.4-3.2.1) Then let's keep this and get this PR merged! |
|
Same for |
|
The purpose of min-size is mainly to let the client know that the server won't offer resumable uploads for representations outside of those boundaries. But this doesn't mean the representation will be rejected when uploading via a traditional POST request, for example. A server may decide to only use resumable uploads for larger files as there is a cost of holding state involved for upload resources. |
|
Oh, I didn't know that. That seems very worth clarifying in the draft. But also, I'm not confident in your explanation. It feels possibly partially conflated with |
|
The definitions of max-size and min-size state that the server might not create an upload resource if the indicated representation size falls outside of these boundaries:
It doesn't say that upload creation requests with sizes outside of these limits must be rejected. The server can still process the included representation without involving resumable uploads, which is a feature IMO, but a bug :) |
|
Yeah, this is mainly to support optimistic discovery, the implementation should not reject uploads smaller than min or larger than max since the client might not know the limit ahead of time. If that's not a part of your use case, it's fine to be stricter. |
Fixes #3395