I\'ve been posting a file with this curl command:
curl -i -F file=@./File.xlsm -F name=file -X POST http://example.com/new_file/
Now I want to
You could just add another form field:
curl -X POST http://someurl/someresource -F upload=@/path/to/some/file -F data="{\"test\":\"test\"}"
Note: due to the content type, this does not really equate to sending json to the web service.