Update file.go: include filename for redirected source

pull/1784/head
Darren Yu 2 years ago committed by GitHub
parent 44801553c6
commit c5aa0a2530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -180,7 +180,7 @@ func (service *FileAnonymousGetService) Source(ctx context.Context, c *gin.Conte
// 获取文件流
ttl := int64(model.GetIntSetting("preview_timeout", 60))
res, err := fs.SignURL(ctx, &fs.FileTarget[0], ttl, false)
res, err := fs.SignURL(ctx, &fs.FileTarget[0], ttl, true)
if err != nil {
return serializer.Err(serializer.CodeNotSet, err.Error(), err)
}

Loading…
Cancel
Save