updated emit event attribute names and changed file to be base64Encoded file