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
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!

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.