Skip to content

Instantly share code, notes, and snippets.

@samuelorji
Last active June 28, 2019 10:46
Show Gist options
  • Save samuelorji/719d291a1ae7decf3c67a8662dab5aef to your computer and use it in GitHub Desktop.
Save samuelorji/719d291a1ae7decf3c67a8662dab5aef to your computer and use it in GitHub Desktop.
(pathEndOrSingleSlash & get) {
complete(
HttpEntity(
ContentTypes.`text/html(UTF-8)`,
"""
|<html>
| <body>
| <form action="/upload" method="post" enctype="multipart/form-data">
| <input type="file" name="myFile">
| <button type="submit">Upload</button>
| </form>
| </body>
|</html>
""".stripMargin
)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment