mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
feat(upload): detect and specify mime type for files uploaded to S3 and OSS (fix#1681)
This commit is contained in:
@@ -345,7 +345,7 @@ func (h *Handler) handlePut(w http.ResponseWriter, r *http.Request, fs *filesyst
|
||||
fileName := path.Base(reqPath)
|
||||
filePath := path.Dir(reqPath)
|
||||
fileData := fsctx.FileStream{
|
||||
MIMEType: r.Header.Get("Content-Type"),
|
||||
MimeType: r.Header.Get("Content-Type"),
|
||||
File: r.Body,
|
||||
Size: fileSize,
|
||||
Name: fileName,
|
||||
|
||||
Reference in New Issue
Block a user