Upload a file with a comma in its name with curl
You have not said what OS you are using. The following solutions work for Linux (not only for curl
but most kinds of escaping:
Put the file name in quotes (you need to escape them as well):
curl --progress-bar -F "fileUpload=@\"yes, this filename has a comma.txt\""
Escape the comma
curl --progress-bar -F "fileUpload=@yes\, this filename has a comma.txt"