You've already forked focalboard
mirror of
https://github.com/mattermost/focalboard.git
synced 2025-07-15 23:54:29 +02:00
Adding gif support for boards (#2126)
* Adding gif support for boards * Updating api
This commit is contained in:
@ -1320,6 +1320,7 @@ func (a *API) handleServeFile(w http.ResponseWriter, r *http.Request) {
|
||||
// - application/json
|
||||
// - image/jpg
|
||||
// - image/png
|
||||
// - image/gif
|
||||
// parameters:
|
||||
// - name: workspaceID
|
||||
// in: path
|
||||
@ -1370,6 +1371,10 @@ func (a *API) handleServeFile(w http.ResponseWriter, r *http.Request) {
|
||||
contentType = "image/png"
|
||||
}
|
||||
|
||||
if fileExtension == "gif" {
|
||||
contentType = "image/gif"
|
||||
}
|
||||
|
||||
w.Header().Set("Content-Type", contentType)
|
||||
|
||||
fileReader, err := a.app.GetFileReader(workspaceID, rootID, filename)
|
||||
|
Reference in New Issue
Block a user