I am trying to send files plus the parameters through curl in the same request
curl -k -X POST -F 'image=@/ruta/123.jpg' -F "title=test&description=tesst" http://localhost:3000/upload
But I get the following error
{"name":"MulterError","message":"Unexpected field","code":"LIMIT_UNEXPECTED_FILE","field":"image","storageErrors":[]}
Thanks in advance
To send images plus parameters in the same POST type request, simply use the flag
-F
as follows