You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/10/21 06:24:34 UTC
[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3414: @RequestPart cannot mapping string value,Required request part 'hostname' is not present
liubao68 commented on issue #3414:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3414#issuecomment-1286513995
Check developer guide, seems not support this usage: https://servicecomb.apache.org/references/java-chassis/zh_CN/general-development/file-upload.html
But jaxrs `@FormParam` can be used:
```
@Path("/upload2")
@POST
@Produces(MediaType.TEXT_PLAIN)
public String fileUpload2(@FormParam("file1") Part file1, @FormParam("message") String message)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org