I need to upload multiple files to a server using the curl command line utility. for a single file I have no problem using:
curl -F \"image=@file1.gif\" ht
The trick is to name the file uploading parameters unique.
curl -F "image=@file1.gif" -F "image2=@file2.gif" http://localhost:8888/web/Upload.php
This will show up in the $_FILES superglobal as $_FILES['image'] and $_FILES['image2'].
To make the files grouped under one $_FILES index you need to name the parameters as arrays:
curl -F "image[]=@file1.gif" -F "image[]=@file2.gif" http://localhost:8888/web/Upload.php