Currently you can only upload files to custom fields on the contact but not on the opportunity