Skip to content

RESUMABLE: Unclear how server should handle completing request with insufficient length #3430

@GrantGryczan

Description

@GrantGryczan

If the client sends an upload creation or append request with Upload-Complete: ?1 whose content isn't large enough to meet the upload length expected by the server, what should the server do? I don't think this edge case is ever explicitly commented on in the draft. If it is, I can't find it.

Some options I can think of:

  1. Mark the upload as completed, process the content, and adjust the upload length accordingly. (Can the upload length change? Opened RESUMABLE: Unclear if changing upload length is allowed #3431)
  2. Don't mark the upload as completed, but respond with success, and otherwise process the content as if there's no issue.
  3. Don't mark the upload as completed, and respond with an error, but otherwise process the content as if there's no issue.
  4. Don't mark the upload as completed, respond with an error, and don't comment on whether the content should be processed.
  5. Don't mark the upload as completed, respond with an error, and recommend against processing the content.

I personally would suggest either option 4 or 5.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions