Skip to content

Commit

Permalink
Correct put_file arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
hokein committed Jul 10, 2015
1 parent 1e0b2ee commit 26e0a1e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions qiniu/services/storage/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ def put_data(

def put_file(up_token, key, file_path, params=None,
mime_type='application/octet-stream', check_crc=False,
progress_handler=None, upload_progress_recorder=None,
cancel_upload_signal=None):

progress_handler=None, upload_progress_recorder=None):
"""上传文件到七牛
Args:
Expand All @@ -44,6 +42,7 @@ def put_file(up_token, key, file_path, params=None,
mime_type: 上传数据的mimeType
check_crc: 是否校验crc32
progress_handler: 上传进度
upload_progress_recorder: 记录上传进度,用于断点续传
Returns:
一个dict变量,类似 {"hash": "<Hash string>", "key": "<Key string>"}
Expand Down

0 comments on commit 26e0a1e

Please sign in to comment.