PDA

View Full Version : question about upload multi selector script



snake_eyes
Mar 26th, 2007, 09:42 PM
Hello,

I've been downloaded the following script: http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/
and I'm trying to develop the action page which is very smart:


if (isset($HTTP_POST_FILES)){
echo count($HTTP_POST_FILES);
}

but I got 1 although still I didn't attached any files yet, if I attached one file the result in PHP page will be 2, so I don't know why it's by default there's one file attached.

Please help...

Regards

koyama
Mar 27th, 2007, 09:28 PM
if I attached one file the result in PHP page will be 2, so I don't know why it's by default there's one file attached.
I don't know why. To find out, try to inspect the array and see what it consists of:


var_dump($HTTP_POST_FILES);