I have to upload files using curl. I can upload single or multiple file using file name, but i want to uplaod all files in a filder with *.csv mask. How i can upload it. as i read on one of the post saying, curl doesn't support wildcards.
ForFiles /m *.csv /c "cmd /c curl.exe -u "username:passowrd" -ssl --cacert "cacert.pem" -F "[email protected]" -F "profileKey=001" https://somewebsite.com/api/api-upload.php >> output.txt
If i can use same ForFiles with following, I can get file name in @file
ForFiles /m *.csv /c "cmd /c echo @file
I tried combining, it deson't work, plz help
ForFiles /m *.csv /c "cmd /c curl.exe -u "username:passowrd" -ssl --cacert "cacert.pem" -F "pfile=@file" -F "profileKey=001" https://somewebsite.com/api/api-upload.php >> output.txt