Feat: remoter handler get content

This commit is contained in:
HFO4
2020-01-04 19:44:38 +08:00
parent c23d129dbb
commit 4b6fbc0de2
4 changed files with 142 additions and 42 deletions

View File

@ -219,6 +219,10 @@ func SlaveAfterUpload(ctx context.Context, fs *FileSystem) error {
}
fs.GenerateThumbnail(ctx, &file)
if policy.CallbackURL == "" {
return nil
}
// 发送回调请求
callbackBody := serializer.RemoteUploadCallback{
Name: file.Name,