play-ws icon indicating copy to clipboard operation
play-ws copied to clipboard

Add multipart-form data to standalone client

Open wsargent opened this issue 8 years ago • 9 comments

Currently the standalone client does not have built in support for multiform post. The functionality is actually in Play-WS in the main project, under https://github.com/playframework/playframework/blob/master/framework/src/play-ahc-ws/src/main/java/play/libs/ws/ahc/AhcWSRequest.java#L44

Because the goal of the standalone client is not to have a dependencies on Play, we'll have to copy it and add it as BodyWritable and BodyReadable:

wsargent avatar Jun 05 '17 01:06 wsargent

@wsargent, and when the library will be updated (with added support of multipart form data)

limpid-kzonix avatar Aug 24 '17 10:08 limpid-kzonix

@wsargent I'm also very interested in this feature. Any update? :)

maximiliancsuk avatar Sep 29 '17 10:09 maximiliancsuk

Hi, @maximiliancsuk.

No updates yet, sorry about it. Do you have time to submit a PR here?

marcospereira avatar Oct 03 '17 22:10 marcospereira

Hey all,

I am also wondering if there will be any traction on this anytime soon? Or is there a well documented work around in the mean-time perhaps?

Andrew

AndrewZurn avatar Oct 29 '17 17:10 AndrewZurn

@AndrewZurn the workaround is to use play-ahc-ws (that is, the WS library with Play extensions).

wsargent avatar Oct 30 '17 03:10 wsargent

It seems it's still not the case now (using 2.0.3 version), any plan to work on this ?

loicknuchel avatar Apr 18 '19 15:04 loicknuchel

Would be very interested to see this resolved. Also, is there any good documentation on the workaround anywhere? This seems like a common usecase and the issue remains unaddressed since 2017

piotr-chabelski avatar Mar 16 '20 03:03 piotr-chabelski

any update for supporting mult-part data form?

Tasselmi avatar May 16 '22 05:05 Tasselmi

Pull request to resolve this issue would be welcome.

mkurz avatar May 16 '22 07:05 mkurz