Yes, it is possible, but determining which is the first and which is the second file upload etc. is not entirely easy, because for each upload, a new upload.php
instance is called.
I would consider passing a random key to the upload script using the scriptData
setting:
queueID: 'A10C923302132048AVB'
and in the PHP script, use a session value to count which image the current one is:
$queueID = $_POST["queueID"];
if (isset($_SESSION[$queueID]))
{
$imageNumber = $_SESSION[$queueID];
$_SESSION[$queueID]++;
}
else
{
$imageNumber = 1;
$_SESSION[$queueID] = imageNumber;
}
$imageNumber
will then contain the number of the uploaded image, and you can move_uploaded_file()
the upload to the desired location.