28
06月
23
//文件地址
$url = ROOT_DIR."/data/1280.jpg";
//上传调用
$res = of_base_com_net::request(
'http://localhost/test/imageupload.php?type=image/jpeg',
[
'file' => [[
'name' => 'file',//字段名,注意不是文件名,是$_FILES的key
'path' => $url, //图片路径
]]
]
);
非特殊说明,本文版权归 Smart.Chen个人博客 所有,转载请注明出处.
本文标题: of框架上传图片用法