feat(thumb): generate thumb for OneDrive files

This commit is contained in:
Aaron Liu
2023-04-07 19:27:31 +08:00
parent 62b73b577b
commit e115497dfe
4 changed files with 12 additions and 6 deletions

View File

@@ -115,6 +115,7 @@ func (fs *FileSystem) GenerateThumbnail(ctx context.Context, file *model.File) {
// 新建上下文
newCtx, cancel := context.WithCancel(context.Background())
defer cancel()
// TODO: check file size
// 获取文件数据
source, err := fs.Handler.Get(newCtx, file.SourceName)