mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
api_docs: Document feature level 286.
This commit is contained in:
@@ -20,6 +20,12 @@ format used by the Zulip server that they are interacting with.
|
|||||||
|
|
||||||
## Changes in Zulip 10.0
|
## Changes in Zulip 10.0
|
||||||
|
|
||||||
|
**Feature level 286**
|
||||||
|
|
||||||
|
* [`POST /user_uploads`](/api/upload-file): Added `filename` field to
|
||||||
|
the response, which is closer to the original filename than the
|
||||||
|
basename of the `url` field in the response.
|
||||||
|
|
||||||
**Feature level 285**
|
**Feature level 285**
|
||||||
|
|
||||||
* [`PATCH /messages/{message_id}`](/api/update-message): Added
|
* [`PATCH /messages/{message_id}`](/api/update-message): Added
|
||||||
|
|||||||
@@ -8253,7 +8253,15 @@ paths:
|
|||||||
filename:
|
filename:
|
||||||
type: string
|
type: string
|
||||||
description: |
|
description: |
|
||||||
The filename that Zulip stored the upload as.
|
The filename that Zulip stored the upload as. This usually
|
||||||
|
differs from the basename of the URL when HTML escaping is
|
||||||
|
required to generate a valid URL.
|
||||||
|
|
||||||
|
Clients generating a Markdown link to a newly uploaded file
|
||||||
|
should do so by combining the `url` and `filename` fields in the
|
||||||
|
response as follows: `[{filename}]({url})`, with care taken to
|
||||||
|
clean `filename` of `[` and `]` characters that might break
|
||||||
|
Markdown rendering.
|
||||||
|
|
||||||
**Changes**: New in Zulip 10.0 (feature level 285).
|
**Changes**: New in Zulip 10.0 (feature level 285).
|
||||||
example:
|
example:
|
||||||
|
|||||||
Reference in New Issue
Block a user