Exemplo n.º 1
0
 /**
  * [uploadFile 上传文件接口]
  * @param  [type] $filePath [文件路径]
  * @param  [type] $bucket   [自定义空间名称]
  * @param  [type] $key      [null]
  * @return [type]           [description]
  */
 public function uploadFile($filePath, $bucket, $key = null)
 {
     $uploadRet = ImageV2::upload($filePath, $bucket, $key);
     return json_encode(array('error' => $uploadRet['code'], 'msg' => $uploadRet));
 }