@Multipart@POST("file")Call uploadHeadImg(@Part("file\"; filename=\"headImg.png\"") RequestBody img);
使用mime+post的方式上传文件,文件名headImg.png,表单file,调用uploadHeadImg,返回DataResult