Open TopSpoofer opened 7 years ago
@TopSpoofer Can you describe how it "doesn't work?"
https://www.playframework.com/documentation/2.5.x/ScalaWS#Submitting-multipart/form-data
@wsargent it's said that there no doc for the file name's charset. I send a file part with a chinese file name and get a file name with messy code in an ohter play server.
Just like httpclient's code
MultipartEntityBuilder.create.setMode(HttpMultipartMode.BROWSER_COMPATIBLE)
to avoid the utf-8 file name to post with messy code. But in play-ws I can just write
FilePart("video_0", videoPath.getFileName.toString, Option("text/plain;charset=utf-8"), FileIO.fromPath(videoPath))
And the file name is wrong with messy code.
the file upload at play's doc was don't working!