2015年8月21日

摘要: require 'upyun'upyun = Upyun::Rest.new('bucket', 'operator', 'password')# 本地路径: ./folder/1/2/3.jpg, 那么,上传到 远程后,应该是: /1/2/3.jpg, happyteam.b0.upaiyun.c... 阅读全文
posted @ 2015-08-21 17:15 技生瑜合声靓 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2015-08-21 11:24 技生瑜合声靓 阅读(191) 评论(0) 推荐(0) 编辑

导航