helper method to send_data the file in a controller