SDK下载地址http://download.csdn.net/detail/jf_2012/9385901
/**sunjunfeng
* 引用上面一个方法(适配文件上传OSS服务器需要)* 上传文件处理
* @param html页面input标签的name 属性值 $upload_input_name
*/
public function uploadFileNew($upload_input_name='upload'){
//status:100=>ERROR || status:0 YES
if($_FILES[$upload_input_name]['error'] == 4)return array('status'=>100,'msg'=>'没有文件被上传!');
$upload = new uploadfilenew();
$info = $upload->RepostNew();
if (!empty($info)){
$return = $info;
$return['status'] = 1;
}else {
$return = $info;
$return['status'] = 100;
}
return $return;
}