Start work on media storage
This commit is contained in:
parent
bf8d272122
commit
9acecfd7f6
10 changed files with 110 additions and 48 deletions
|
@ -25,7 +25,8 @@ func Compress(dataReader io.Reader, mimeType *string) (io.Reader, error) {
|
|||
return nil, err
|
||||
}
|
||||
if mimeType == nil {
|
||||
*mimeType = mimetype.Detect(data).String()
|
||||
tmp := mimetype.Detect(data).String()
|
||||
mimeType = &tmp
|
||||
}
|
||||
uberType, subType, _ := strings.Cut(*mimeType, "/")
|
||||
var dataOut []byte
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue