feat(thumb): set size limit for original file

This commit is contained in:
Aaron Liu
2023-04-07 19:28:39 +08:00
parent b910254cc5
commit f5a21a7e6f
4 changed files with 25 additions and 15 deletions

View File

@@ -145,7 +145,6 @@ 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