🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
~~~ <form action="http://test.zhichangbb.com/user/Asset/upload_file" enctype="multipart/form-data" method="post"> <input type="file" name="file" /> <br> <input type="submit" value="上传" /> </form> ~~~ 注意这个不带api/ * * * * * ~~~[api] post:/user/Asset/upload_file *string:file=默认值#file <<< success { "code": 1, "msg": "上传成功!", "data": { "filepath": "20171014/9df2949ad9aa58bfd298e1fafc2b6690.png", "name": "f0a64566473f1cae26828d6251b40ec7.png", "id": null, "preview_url": "http://oxsx110jp.bkt.clouddn.com/20171014/9df2949ad9aa58bfd298e1fafc2b6690.png!watermark", "url": "http://oxsx110jp.bkt.clouddn.com/20171014/9df2949ad9aa58bfd298e1fafc2b6690.png!watermark" } } <<< error ~~~