Update file upload in agreements and tie into api endpoint.