Skip to content

Discussion: Detection of parallel uploads - respond with "423 Locked" #115

@KieranP

Description

@KieranP

Saw this issue happen today:

  • User began uploading a large file, the url was stored in local storage
  • User began uploading the same file again (but to a different object)

Currently, one of them will return "409 Conflict" as the spec instructs and thus halts, while the other is was able to continue uploading fine.

"409" is good when the client does something it shouldn't and thus acts as a safeguard. But could we provide a better http status code when the server detects that the file is being uploaded already? e.g. The http status code "423" is defined as Locked, which could be more appropriate in this case.

This would allow us to catch "423" errors, and handle them appropriately.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions