mirror of
https://github.com/Chenyu550/alist-fork.git
synced 2025-06-10 14:46:53 -04: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…
Reference in New Issue
Block a user