Add a fileModel directive to make the chosen file available in controller.