Skip to content

FloWi/http4s-multipart-image-upload-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http4sftw

I want to create a service, that receives multiple images being sent as a multipart request via POST.

My code is heavily influenced by the excellent example by @gvolpe.
But this implementation had a bug which could be solved with the help of @jmcardon. See his explanation in gitter.

Run either

  • the testcase with sbt test
  • or start the server with sbt run and upload some example images to the endpoint via cURL.
IMAGES="src/test/resources/example-images"

curl -v -F "1.png=@$IMAGES/1.png" -F "2.png=@$IMAGES/2.png" -F "3.png=@$IMAGES/3.png" http://localhost:8080/upload-images

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published