Add "select all" option to photo (or other) upload screen

As discussed and requested in #634
If we are not doing anything when file is a directory, this check is not necessary.