RxNetty icon indicating copy to clipboard operation
RxNetty copied to clipboard

Multipart upload samples

Open billyyarosh opened this issue 9 years ago • 3 comments

Curious if there is any support for this. Digging and can't seem to find it. Thanks in advanced. :sos:

billyyarosh avatar Jan 08 '16 20:01 billyyarosh

@keaplogik I haven't tried multipart upload anytime, if you try it out and face issues, I am happy to help :)

NiteshKant avatar Jan 12 '16 00:01 NiteshKant

It doesn't seem possible to try it, since RxNetty hides the underlying netty request. And the Netty API for multipart handling requires access to the request object:

https://github.com/netty/netty/blob/4.1/codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoder.java#L154

So as it stands it isn't possible to create multipart request with RxNetty, at least not with the regular Netty APIs for doing so.

graemerocher avatar Jun 20 '16 08:06 graemerocher

@graemerocher I agree that you cannot use the native netty tooling. We have been using the raw netty client today for this and will not have time to implement any APIs around the multipart for RxNetty. We may just provide some utilities for specific use cases like file upload.

billyyarosh avatar Jun 20 '16 18:06 billyyarosh