Upload a file
Upload a single file and get the corresponding URI.
# Download ~/zuliprc-dev from your dev server
client = zulip.Client(config_file="~/zuliprc-dev")
# Upload a file
# (Make sure that 'fp' is a file object)
result = client.call_endpoint(
The file to upload must be provided, and it should be placed in the request's
multipart media type.
Maximum file size
The maximum file size for uploads can be configured by the
administrator of the Zulip server by setting
in the server's settings.
uri: The URI of the uploaded file.
A typical successful JSON response may look like: