Skip to content

Commit c3c7e90

Browse files
committed
Merge pull request git-lfs#1082 from epriestley/patch-2
Explain a subtlety of client handling for "download" batch action
2 parents b419488 + 5e2e61c commit c3c7e90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/api/http-v1-batch.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ when the object has not been previously uploaded.
105105
successfully uploading an object. This is an optional relation for the case that
106106
the server has not verified the object.
107107
* `download` - This relation describes how to download the object content. This
108-
only appears if an object has been previously uploaded.
108+
only appears if an object has been previously uploaded. If object content is
109+
already available, the server should provide this action even if the request
110+
operation is `upload`, because the client can use the presence of this action to
111+
avoid duplicate uploads of object content which is already known to the server.
109112

110113
An action can optionally include an `expires_at`, which is an ISO 8601 formatted
111114
timestamp for when the given action expires (usually due to a temporary token).

0 commit comments

Comments
 (0)