摘要:
require 'upyun'upyun = Upyun::Rest.new('bucket', 'operator', 'password')# 本地路径: ./folder/1/2/3.jpg, 那么,上传到 远程后,应该是: /1/2/3.jpg, happyteam.b0.upaiyun.c... 阅读全文
摘要:
1.require 'upyun' 引用upyun2.upyun = Upyun::Rest.new(bucket,operator,password,options,endpint)3.res = upyun.put('/1/2/3/4/5/hi.jpg', File.new('/workspac... 阅读全文