vertx-web icon indicating copy to clipboard operation
vertx-web copied to clipboard

multipart file upload doesn't work with openapi check

Open ebadta81 opened this issue 1 year ago • 0 comments

Version

4.4.6, 4.5.0

Context

I get this error message:

io.vertx.ext.web.validation.RequestPredicateException: [Bad Request] File with content type \Qapplication/octet-stream\E and name file is missing
	at io.vertx.ext.web.validation.impl.ValidationHandlerImpl.runPredicates(ValidationHandlerImpl.java:184)
	at io.vertx.ext.web.validation.impl.ValidationHandlerImpl.handle(ValidationHandlerImpl.java:67)
	at io.vertx.ext.web.validation.impl.ValidationHandlerImpl.handle(ValidationHandlerImpl.java:18)

Do you have a reproducer?

multipart-reproducer

Steps to reproduce

  1. run reproducer
  2. upload file with curl -X POST "http://127.0.0.1:8888/test" -F "file=@/tmp/dims.jpeg;type=image/jpeg" -F "id=1"

ebadta81 avatar Nov 26 '23 05:11 ebadta81