added upload functionality for contracts and receipts