Skip to content

Commit

Permalink
🐛 fix upload get wrong content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jan 2, 2022
1 parent efeee0e commit bcf19f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func UploadFile(c *gin.Context) {
Size: uint64(file.Size),
ParentPath: path_,
Name: file.Filename,
MIMEType: c.GetHeader("Content-Type"),
MIMEType: file.Header.Get("Content-Type"),
}
err = driver.Upload(&fileStream, account)
if err != nil {
Expand Down

0 comments on commit bcf19f4

Please sign in to comment.