Storage: Mime type detection (#52512)

* Storage: implement mime type detection

* lint
This commit is contained in:
Artur Wierzbicki
2022-07-25 11:30:20 +04:00
committed by GitHub
parent 1e3135b18a
commit d9db155394
9 changed files with 169 additions and 29 deletions
-1
View File
@@ -129,7 +129,6 @@ func (s *httpStorage) Upload(c *models.ReqContext) response.Response {
err = s.store.Upload(c.Req.Context(), c.SignedInUser, &UploadRequest{
Contents: data,
MimeType: mimeType,
EntityType: entityType,
Path: path,
OverwriteExistingFile: overwriteExistingFile,