Thread:Project:Support desk/API:Upload data formatting with bash and curl/reply

To upload a file through curl, the MW api requires that the file be sent with a MIME/multipart header. The -d flag in curl specifies the "application/x-www-form-urlencoded" mime-type, whereas the -F flag specifies a miltiport form submission mime-type. So the command: curl -d "param1=param&param2=param" URL Would be represented as: curl -F "param1=param" -F "param2=param" URL

I'll add some guidance to the help page. Cheers!