download file method to the controller added, to be tested