fix: upload file path

This commit is contained in:
henry.chen committed 2025-10-14 10:02:36 +08:00
1 parent 422aacdc09
commit 523ee64931
1 file changed
+1 -1
+1 -1
View File
@@ -42,7 +42,7 @@ type UploadParams struct {
func (cli *QiniuClient) Upload(params UploadParams) (string, error) {
key := params.Name
if !params.NoCompletePath {
key = filepath.Base(params.Name)
key = completeQiniuKey(params.Name)
}
mac := qbox.NewMac(cli.Conf.AccessKey,