Skip to content

Commit d109ad5

Browse files
committed
Merge pull request midasplatform#28 from jcfr/improve-generatetoken-documentation
generate_upload_token: Improve documentation
2 parents c9e7936 + 23f91b1 commit d109ad5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pydas/drivers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,12 @@ def generate_upload_token(self, token, item_id, filename, checksum=None):
931931
checksum allows the server to determine if the file is already in the
932932
asset store.
933933
934+
If :param:`checksum` is passed and the token returned is blank, the
935+
server already has this file and there is no need to follow this
936+
call with a call to `perform_upload`, as the passed in file will have
937+
been added as a bitstream to the item's latest revision, creating a
938+
new revision if one doesn't exist.
939+
934940
:param token: A valid token for the user in question.
935941
:type token: string
936942
:param item_id: The id of the item in which to upload the file as a

0 commit comments

Comments
 (0)