creating upload response from file method