多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
### **获取完整API、源码、技术支持、精选面试题** > ### **请购买 $ [大前端精选 - 面试题](https://www.kancloud.cn/small-four/asdasdasdasd/content/HTML.md)** ### 图片上传 ~~~[api] post:/manage/product/upload.do <<< request <form name="form2" action="/manage/product/upload.do" method="post" enctype="multipart/form-data"> <input type="file" name="upload_file"> <input type="submit" value="upload"/> </form> <<< response { "status": 0, "data": { "uri": "e6604558-c0ff-41b9-b6e1-30787a1e3412.jpg", "url": "http://img.happymmall.com/e6604558-c0ff-41b9-b6e1-30787a1e3412.jpg" } } <<< success { "status": 0, "data": { "uri": "e6604558-c0ff-41b9-b6e1-30787a1e3412.jpg", "url": "http://img.happymmall.com/e6604558-c0ff-41b9-b6e1-30787a1e3412.jpg" } } <<< fail status!=0的时候 <<< 说明 还可以借助于图片上传插件 ~~~