feat(thumb): delete generated thumb file

fix(s3): return empty list of file failed to be deleted
This commit is contained in:
Aaron Liu
2023-04-07 19:27:57 +08:00
parent e115497dfe
commit b910254cc5
5 changed files with 24 additions and 9 deletions

View File

@@ -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