mirror of
https://github.com/wahyd4/ruby-sdk.git
synced 2026-08-09 04:46:10 +10:00
修正入口函数 upload_file ,以正确地调用分片上传功能。
This commit is contained in:
+1
-2
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user