Angularjs directive to select a file (drop or input file)