What is the right way to POST multipart/form-data using curl? October 8, 2022 by Tarik The following syntax fixes it for you: curl -v -F key1=value1 -F upload=@localfilename URL