### proto:
```
//Upload
message UploadFileRequest {
string fileName = 1;
bytes content = 2;
}
message UploadFileResponse {
string FilePath = 1;
}
```
### yaml
```
# 上传文件
- selector: proto.v1.Services.UploadFile
post: /v1/upload
body: "*"
```
![image.png](https://static.golangjob.cn/230706/5dfca82213477257e026d15b79961ee3.png)
当前 Content-Type: multipart/form-data;
请问, 这种gateway的情况,我应该如何才能实现图片的上传呀, 现在的情况就是忘关层就挂掉了
有疑问加站长微信联系(非本文作者)
![](https://static.golangjob.cn/static/img/footer.png?imageView2/2/w/280)