Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

put object 的 name 转义问题 #291

Open
Hanson opened this issue Dec 21, 2024 · 0 comments
Open

put object 的 name 转义问题 #291

Hanson opened this issue Dec 21, 2024 · 0 comments

Comments

@Hanson
Copy link

Hanson commented Dec 21, 2024

传入带路径的文件名参数,会进行转移

# /github.com/tencentyun/[email protected]/object.go:488
sendOpt := sendOptions{
			baseURL:   sUrl,
			uri:       "/" + encodeURIComponent(name),
			method:    http.MethodPut,
			body:      reader,
			optHeader: opt,
		}

put 的时候转义导致没有传入目录结构 ,例如

sph/123.mp4 => sph%2F123.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant