micro / services

Real World Micro Services
Apache License 2.0
1.27k stars 139 forks source link

Direct file upload on image service #264

Closed domwong closed 3 years ago

domwong commented 3 years ago

Rather than base64 or URL

Reequires changes for multipart form input per https://github.com/micro/micro/pull/1860

This would be the first endpoint that isn't POST with JSON body, rather a multipart form e.g.

curl https://api.m3o.com/v1/image/upload -H "Authorization: Bearer XXX"  -F name=rome.jpg -F file=@rome10.jpg