mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 13:54:04 +08:00
🐛 fix upload get wrong content-type
This commit is contained in:
parent
efeee0e276
commit
bcf19f4f3e
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user