def fileupdate(self, data):
self.name = data["<STR_LIT:name>"]<EOL>add = self.__additional<EOL>add["<STR_LIT>"] = "<STR_LIT>"<EOL>for filetype in ("<STR_LIT>", "<STR_LIT:image>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>if filetype in data:<EOL><INDENT>add["<STR_LIT>"] = filetype<EOL>break<EOL><DEDENT><DEDENT>if add["<STR_LIT>"] in ("<STR_LIT:image>", "<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>add["<STR_LIT>"] = data.get("<STR_LIT>", dict())<EOL><DEDENT>add["<STR_LIT>"] = data["<STR_LIT>"]<EOL>add["<STR_LIT>"] = data["<STR_LIT>"] / <NUM_LIT:1000><EOL>add["<STR_LIT:size>"] = data["<STR_LIT:size>"]<EOL>add["<STR_LIT:info>"] = data.get(add["<STR_LIT>"], dict())<EOL>add["<STR_LIT>"] = data["<STR_LIT:user>"]<EOL>if self.room.admin:<EOL><INDENT>add["<STR_LIT:info>"].update({"<STR_LIT>": data.get("<STR_LIT>")})<EOL>add["<STR_LIT:info>"].update({"<STR_LIT>": data.get("<STR_LIT>")})<EOL><DEDENT>self.updated = True<EOL>
Method to update extra metadata fields with dict obtained
        through `fileinfo`