url = 'http://xx' #post到url
field_hash = {key: key, token: token} #post数据
request = RestClient.post url, field_hash.merge(file: File.new(File.join('public', "#{params[:logo]}"), 'rb')) #上传文件
reponse = request.to_s #返回结果
用户登录
还没有账号?立即注册
用户注册
投稿取消
| 文章分类: |
|
还能输入300字
上传中....
施主淫得一手好湿