/**
* +----------------------------------------------------------------------------------------------------
* 接收图片数据
* @param u_id 用户id
* +-----------------------------------------------------------------------------------------------------
* */
functionapi_upfile($where)
{
//文件路径
$UPLOAD_FILE_PATH=$where['upload_file_path'];
//文件夹以及文件命名
$mdir=date('Y').date('m');
$files=mb_substr(md5(time()),0,12,'utf-8').rand(10,10000);
//解密传过来的字符串
$where['md_img']=str_replace(" ","+",$where['md_img']);
$data=base64_decode($where['md_img']);
//判断是否以二进制流方法传送
if(!empty($data)){
//接到流后进行解包 (解出文件名子参数,和文件流的格式)
$fix=filefix($data);
//拼接目录
$upload_file_pa