swaggest / rest

Web services with OpenAPI and JSON Schema done quick in Go
https://pkg.go.dev/github.com/swaggest/rest
MIT License
374 stars 17 forks source link

Support HTTP Handler for File Upload #210

Closed edyrkaj closed 3 weeks ago

edyrkaj commented 1 month ago

How to use a custom handler to parse or expect uploaded file?

vearutop commented 3 weeks ago

Please check https://github.com/swaggest/rest/blob/v0.2.68/_examples/advanced-generic-openapi31/file_multi_upload.go and https://github.com/swaggest/rest/blob/v0.2.68/_examples/advanced-generic-openapi31/file_upload.go.