MM-9747: Small fixes for attachments import (#9225)

* MM-9747: Small fixes for attachments import

* Adding unit test RootId check in replies
This commit is contained in:
Jesús Espino
2018-08-08 12:10:05 +02:00
committed by Carlos Tadeu Panato Junior
parent 7475cd260a
commit 5fbec91c35
3 changed files with 60 additions and 3 deletions

View File

@@ -285,6 +285,7 @@ func getFilePreview(c *Context, w http.ResponseWriter, r *http.Request) {
if err != nil {
c.Err = err
c.Err.StatusCode = http.StatusNotFound
return
}
defer fileReader.Close()