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

Auto add local file name if cos path is dir #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wzxjohn
Copy link

@wzxjohn wzxjohn commented Feb 16, 2022

Currently if upload single file to cos path, the filename is required at the end of cos path. If the cos path is a dir (end with /), the upload will be success but the object name will be empty.
So I add some simple code to auto add origin filename to the end of cos path to avoid wasting time and net flow.
Also Fix #11

@wolf-joe
Copy link

快一年过去了也没看到有人管……

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

Successfully merging this pull request may close these issues.

sync上传时,文件名称为空
2 participants