Page 1 of 1

Number of Images uploaded...?

Posted: Mon Apr 12, 2010 12:51 pm
by erwinmaes
Hi,

is there any way to get the number of images uploaded in the post processing page?

I have the array
$_POST['filename1'], $_POST['filename2'], etc.....
but can I somehow get the number of filenames??

I tried

$i=1;
$name = 'filename'.$i;
while ( isset($_POST[$name]) ) {
loop to insert filenames into database & create thumbnails
$i++;
$name = 'filename'.$i;
}

but it does not work...

Re: Number of Images uploaded...?

Posted: Mon Apr 12, 2010 6:53 pm
by support
Your PHP code seems correct. It does not stop when filename10 (for instance) is not set?
Try to test if filename10 length is > 0