Okay, so I have a bit of a problem. I am using the HTML5 multiple file upload attribute to upload multiple files. I am using php to loop through each upload. I only want to run the foreach loo if the sum of all of the file sizes of the files being uploaded is greater that 0. How can I do this.
I have tried:
$file_test= $_FILES['uploads']['size']['0'];
if ($file_test != 0) {
// code to run
}
But this ONLY tests the very first file.
Thanks!