Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-text file upload fails #103

Open
hiucimon opened this issue Dec 8, 2016 · 0 comments
Open

Non-text file upload fails #103

hiucimon opened this issue Dec 8, 2016 · 0 comments

Comments

@hiucimon
Copy link

hiucimon commented Dec 8, 2016

I am working on a program that needs a binary file to be sent to it, so I downloaded Wasabi, and created this little test program. No, not very clean and yes I know I am just printing null but it is just to see if I am getting to the print. If I supply a txt file, things are fine, as is the two other forms, but any binary file I select results in:

[nioEventLoopGroup-3-4] INFO org.wasabifx.wasabi.interceptors.LoggingInterceptor - [GET] - /bad-request

With the following program:

import org.wasabifx.wasabi.app.AppServer

fun main(args : Array) {
println("Started")
var server = AppServer()
server.get("/testget",{
println(request.bodyParams["filename"])
})
server.post("/testpost",{
println(request.bodyParams["filename"])
})

server.post("/upload",{
    println(request.bodyParams["filename"])
})
server.start()

}

And the following HTML:

<title>Test ClamAV</title> First name:
Last name:
First name:
Last name:
Choose a file to upload:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant