Write file on POST, but still need to return a response.