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

文件名包含空格的文件无法正常上传 #15

Open
vinkdong opened this issue May 16, 2022 · 1 comment
Open

文件名包含空格的文件无法正常上传 #15

vinkdong opened this issue May 16, 2022 · 1 comment

Comments

@vinkdong
Copy link

// PutFile uploads a file to the specified bucket.
func (obsClient ObsClient) PutFile(input *PutFileInput, extensions ...extensionOptions) (output *PutObjectOutput, err error) {
	if input == nil {
		return nil, errors.New("PutFileInput is nil")
	}

	var body io.Reader
	sourceFile := strings.TrimSpace(input.SourceFile)

这里sourceFile := strings.TrimSpace(input.SourceFile)对源文件名称进行了去除空格操作,导致文件名包含空格的文件无法正常上传。

@vinkdong vinkdong changed the title 文件名包含空格的文件正常上传 文件名包含空格的文件无法正常上传 May 16, 2022
@noaccident
Copy link
Collaborator

不好意思,该问题会在下个版本修复,感谢您的反馈。

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

2 participants