I need to upload a CSV file using CURL command. The API where I am posting this file only accepts file in UTF-8 encoding. Here is my CURL command:
curl \
--request POST \
--url "url" \
--header "Content-Type: multipart/form-data" \
--form "file=file.csv;type=text/csv;charset=utf-8"
But when I run above command it fails to upload the file. Can someone please help? Thanks.