def _handle_files(self, data):
initial = data.get("<STR_LIT>", False)<EOL>files = data["<STR_LIT>"]<EOL>for f in files:<EOL><INDENT>try:<EOL><INDENT>fobj = File(<EOL>self.room,<EOL>self.conn,<EOL>f[<NUM_LIT:0>],<EOL>f[<NUM_LIT:1>],<EOL>type=f[<NUM_LIT:2>],<EOL>size=f[<NUM_LIT:3>],<EOL>expire_time=int(f[<NUM_LIT:4>]) / <NUM_LIT:1000>,<EOL>uploader=f[<NUM_LIT:6>].get("<STR_LIT>") or f[<NUM_LIT:6>].get("<STR_LIT:user>"),<EOL>)<EOL>self.room.filedict = fobj.fid, fobj<EOL>if not initial:<EOL><INDENT>self.conn.enqueue_data("<STR_LIT:file>", fobj)<EOL><DEDENT><DEDENT>except Exception:<EOL><INDENT>import pprint<EOL>LOGGER.exception("<STR_LIT>")<EOL>pprint.pprint(f)<EOL><DEDENT><DEDENT>if initial:<EOL><INDENT>self.conn.enqueue_data("<STR_LIT>", self.room.files)<EOL><DEDENT>
Handle new files being uploaded