Uploading multiple file with Javascript and php at the backend. This is the part one, about creating a form where user can upload any number of files, you can set a limit to max number of files by using global variable here really simple.
Source files.
https://sourceforge.net/p/amfu/git/