mirror of https://github.com/cloudreve/Cloudreve
fix(thumb blob path): remove extra randomkey in thumb blob path
parent
9434c2f29b
commit
82ac506216
|
@ -147,9 +147,8 @@ func (f *DBFS) PrepareUpload(ctx context.Context, req *fs.UploadRequest, opts ..
|
||||||
req.Props.SavePath = generateSavePath(policy, req, f.user)
|
req.Props.SavePath = generateSavePath(policy, req, f.user)
|
||||||
if isThumbnailAndPolicyNotAvailable {
|
if isThumbnailAndPolicyNotAvailable {
|
||||||
req.Props.SavePath = fmt.Sprintf(
|
req.Props.SavePath = fmt.Sprintf(
|
||||||
"%s.%s%s",
|
"%s%s",
|
||||||
req.Props.SavePath,
|
req.Props.SavePath,
|
||||||
util.RandStringRunes(16),
|
|
||||||
f.settingClient.ThumbEntitySuffix(ctx))
|
f.settingClient.ThumbEntitySuffix(ctx))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue