What is the right way to POST multipart/form-data using curl?
The following syntax fixes it for you:
curl -v -F key1=value1 -F upload=@localfilename URL
to upload a file using curl in Windows I found that the path requires escaped double quotes
e.g.
curl -v -F 'upload=@\"C:/myfile.txt\"' URL