FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

add cdn related functions to python sdk by jemygraw · Pull Request #244 · qiniu/python-sdk · GitHub

add cdn related functions to python sdk - #244

Merged
jemygraw merged 4 commits into
qiniu:masterfrom
jemygraw:master
Feb 3, 2017
Merged

add cdn related functions to python sdk#244
jemygraw merged 4 commits into
qiniu:masterfrom
jemygraw:master

Conversation

jemygraw commented Jan 8, 2017

Copy link
Copy Markdown
Contributor

No description provided.

jemygraw closed this Jan 8, 2017
jemygraw reopened this Jan 8, 2017
jemygraw merged commit 3800c52 into qiniu:master Feb 3, 2017
record_file_name = base64.b64encode(key.encode('utf-8')).decode('utf-8')
upload_record_file_path = os.path.join(self.record_folder,
record_file_name)
record_file_name = hashlib.md5(record_key.encode('utf-8')).hexdigest()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

做成一个函数

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

其实这里用filename和key做hash并不能保证进度文件唯一,如果往不同的bucket里面传这个同一个文件,filename和key都相同,就会出问题。

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL