修正入口函数 upload_file ,以正确地调用分片上传功能。

This commit is contained in:
Liang Tao
2015-05-13 21:23:32 +08:00
parent adb20cd815
commit 1b0491a2c9
+1 -2
View File
@@ -64,12 +64,11 @@ module Qiniu
opts[:enable_resumable_upload] = true unless opts.has_key?(:enable_resumable_upload)
if opts[:enable_resumable_upload] && File::size(source_file) > Config.settings[:block_size]
code, data, raw_headers = Storage.upload_with_token(opts[:uptoken],
code, data, raw_headers = Storage.resumable_upload_with_token(opts[:uptoken],
opts[:file],
opts[:bucket],
opts[:key],
opts[:mime_type],
opts[:note],
opts[:customer],
opts[:callback_params],
opts[:rotate])