Uploading files to a referral