* issue 5040: only append type to formData file if defined
* errant whitespace removal:
* conform to code style
* code style
* use template string in nested type ternary operator
The request body is an immutable.js OrderedMap rather than a string,
so this fixes the type error:
TypeError: request.get(...).split is not a function
Adds a special curl command argument for files, e.g.
curl -F "param=value" -F "file=@filename.txt;type=text/plain"