Added file handling to send base64 encoded data to backend.  There is probably a better way but this works for the moment.