Clean up input directive, use  service to send file to scope