I'm trying to upload a set of 3 files simultaneously to a LAMP server using the command line version of curl on Windows. The following command (referenced here) works perfectly on the linux version but doesn't send any files on when I try it on Windows port:
curl.exe -F file[][email protected] -F file[][email protected] -F file[]=3.mp4 https://www.blah.com/upload.php
upload.php accepts and processes the files:
if (!empty($_FILES)) {
$total = count($_FILES['file']['tmp_name']);
for ($i = 0; $i < $total; $i++) {
//process files
}
}
Any idea what I'm doing wrong?
upload.phpdo?