File identification in controller