Allow supplying tiggers other than the input

This allows a user to use something other than a default browser file input, e.g. a button.