for (var i = 0; i < input.files.length; ++i) {
name = name.push(input.files[i].name)
}
I want to get the name of the files and put them in a array so I can post them to a php file to upload. Please help.
The variable name is the array I want to post.
is there a loop in javascript like foreach in php