added functions to dynamically add attachment each time file is sent - functions added getFilePath(), getCurrentFileAsString(), getFileAsBase64(); also update the update params function