This repository was archived by the owner on Nov 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
File upload not working #93
Milestone
Comments
Also with current aproach it's not possible to obtain original file name. |
To fix it should be at least like that: File background = new File(message.body().getString("background")); instead of: File background = Json.mapper.readValue(message.body().getJsonObject("background").encode(), File.class); |
Small patch to fix this:
|
Hi. |
petebuletza
added a commit
to petebuletza/vertx-swagger
that referenced
this issue
Feb 9, 2018
phiz71
pushed a commit
that referenced
this issue
Feb 10, 2018
Thanks @petebuletza for this PR and thanks for the unit-test.
I downloaded the current v1.6 from maven central and although it seems to contain this fix, code generation still spits out the wrong line for the petstore.json: My sample code is in a github repo: https://github.com/cburnicki/vertx-file-upload-test |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It's not possible to read image from
multipart/form-data
.Swagger:
Request:
Exception:
java.lang.ClassCastException: java.lang.String cannot be cast to io.vertx.core.json.JsonObject
It's try parse
file-uploads/c54807b6-ffa2-44da-be50-6424ab179cad
string as File.The text was updated successfully, but these errors were encountered: