5.7. User.ReceiveFile: Add a shared file to personal file namespace¶
ReceiveFile(filename string, sender string, accessToken UUID) (error)¶
Adds a file that was previously shared with the caller (i.e. the recipient) to the personal file namespace of the caller.
Returns an error if:
the secure file share invitation pointed to by
accessTokenhas been revoked; or
the recipient already has a file with the given
filenamein their personal file namespace; or
the recipient is unable to verify that the secure file share invitation pointed to by the given
accessTokenwas sent by the given
the recipient is unable to verify the integrity of the secure file share invitation pointed to by the given
filename (string) – The filename that the recipient would like to assign to the shared file in their personal file namespace.
sender (string) – The username of the sender.
accessToken (UUID) – The UUID storage key at which the sender’s secure file share invitation is stored in the Datastore.
- Return type