Number of Images uploaded...?

Image previewer add-on.

Number of Images uploaded...?

Postby erwinmaes » Mon Apr 12, 2010 12:51 pm


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

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

but it does not work...
Posts: 3
Joined: Thu Apr 08, 2010 7:15 pm

Re: Number of Images uploaded...?

Postby support » Mon Apr 12, 2010 6:53 pm

Your PHP code seems correct. It does not stop when filename10 (for instance) is not set?
Try to test if filename10 length is > 0
User avatar
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Return to JImageUpload


Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.