Number of Images uploaded...?

Image previewer add-on.
Post Reply
erwinmaes
Posts: 3
Joined: Thu Apr 08, 2010 7:15 pm

Number of Images uploaded...?

Post 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...

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Number of Images uploaded...?

Post 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

Post Reply