(self, content:bytearray)
| 93 | return fragments[1], fragments[0] |
| 94 | |
| 95 | def get_zip_files(self, content:bytearray)->str: |
| 96 | text = "" |
| 97 | with zipfile.ZipFile(io.BytesIO(content), 'r') as zip_file: |
| 98 | text = '\n'.join(zip_file.namelist()) |
| 99 | |
| 100 | return text |
| 101 | def get_file_type(self, content_bytes:bytes): |
| 102 | #content_bytes = b64decode(content) |
| 103 | return self.get_office(content_bytes) |