- Updated code to handle multiple message types on file upload.