mirror of https://github.com/cloudreve/Cloudreve
Update thumbnail.go
parent
d7d9fa6494
commit
ee71fd8ff0
|
@ -184,11 +184,7 @@ func (m *manager) generateThumb(ctx context.Context, uri *fs.URI, ext string, es
|
||||||
Props: &fs.UploadProps{
|
Props: &fs.UploadProps{
|
||||||
Uri: uri,
|
Uri: uri,
|
||||||
Size: fileInfo.Size(),
|
Size: fileInfo.Size(),
|
||||||
SavePath: fmt.Sprintf(
|
SavePath: es.Entity().Source() + m.settings.ThumbEntitySuffix(ctx),
|
||||||
"%s%s",
|
|
||||||
es.Entity().Source(),
|
|
||||||
m.settings.ThumbEntitySuffix(ctx),
|
|
||||||
),
|
|
||||||
MimeType: m.dep.MimeDetector(ctx).TypeByName("thumb.jpg"),
|
MimeType: m.dep.MimeDetector(ctx).TypeByName("thumb.jpg"),
|
||||||
EntityType: &entityType,
|
EntityType: &entityType,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue