added an addFile method to add files to the request