Controller to take a file as input