How can I upload a file named
yes, this filename has a comma.txt with the cli
You would normally do this to upload a file with
curl --progress-bar -F "fileUploadfirstname.lastname@example.org"
curl interprets commas as multiple files to upload, so this will not work:
curl --progress-bar -F "fileUpload=@yes, this filename has a comma.txt"
How can I escape the filename?
I already found a workaround by creating a temporary symlink to the original file and pass that to curl. However the problem is that the filename that
curl sends to the server is the filename of the symlink, not the original file.