I've seen several posts describing how to upload files using swagger using multipart/form-data but have had no luck when using swagger-node-express v2.0.3.
My resource defines the relevant parameter as follows:
{
"name": "File",
"description": "The file to upload.",
"paramType": "body",
"required": true,
"allowMultiple": true,
"dataType": "file"
}
I've set the resource to consume 'multipart/form-data' and am sending an additional parameter in the request. The file upload fails every time with a 'boundary not set' error (note that it fails with this error whether or not I include the additional parameter).
When examining network traffic I can see that the UI isn't even sending the file data in the request.
I've tried the pet store file-upload example online and simply get a 'file not found' message.
Is multipart file upload actually supported in swagger-node-express? If so, how am I supposed to use it? I've followed all the examples I can find but am not having any luck.
Thanks.