mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
feat(thumb): delete generated thumb file
fix(s3): return empty list of file failed to be deleted
This commit is contained in:
@@ -145,6 +145,7 @@ func (handler Driver) Thumb(ctx context.Context, file *model.File) (*response.Co
|
||||
return nil, errors.New("failed to get thumbnail size")
|
||||
}
|
||||
|
||||
return nil, driver.ErrorThumbNotSupported
|
||||
res, err := handler.Client.GetThumbURL(ctx, file.SourceName, thumbSize[0], thumbSize[1])
|
||||
if err != nil {
|
||||
var apiErr *RespError
|
||||
|
||||
Reference in New Issue
Block a user