Jump to content

how to count total file uploads


mpsn

Recommended Posts

Hi, I want to let users upload multiple images to my online picture book, so after they press submit, HOW do I count the total $_FILES[someName]['name'] uploaded. I want to allow users to type in html form the total uploads they want and this will then display that many desired upload forms.

 

I'm going to try count($_FILES[][]) and go from there first...

 

Any help much appreciated!

Link to comment
https://forums.phpfreaks.com/topic/250852-how-to-count-total-file-uploads/
Share on other sites

I have 10 upload forms, so how do I count which one's have files uploaded to them b/c don't they all have different names as in:

<input type='file' name='uploadA' > etc

 

There is user logging in so only each user can upload to their online album.

 

Any help much appreciated!

I was hoping there was a less redundant/hard coded way, b/c I want to change it so that user can type in how many images to upload, so then there would no way to use the method you showed me, but I guess I'll stick with 10 uploads and figure it out later, thanks though.

 

Hey, if you are good with mysql, can you also take a look at my other post:

http://www.phpfreaks.com/forums/index.php?topic=347404.0

 

Any help is much appreciated!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.