mirror of https://github.com/cloudreve/Cloudreve
parent
82ac506216
commit
d7d9fa6494
|
@ -146,10 +146,7 @@ func (f *DBFS) PrepareUpload(ctx context.Context, req *fs.UploadRequest, opts ..
|
||||||
if req.Props.SavePath == "" || isThumbnailAndPolicyNotAvailable {
|
if req.Props.SavePath == "" || isThumbnailAndPolicyNotAvailable {
|
||||||
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 = req.Props.SavePath + f.settingClient.ThumbEntitySuffix(ctx)
|
||||||
"%s%s",
|
|
||||||
req.Props.SavePath,
|
|
||||||
f.settingClient.ThumbEntitySuffix(ctx))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue