You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IfthefilesareinOffice2007format(e.g..docx),thentheirinternalstorageiseither:
1)Azipfileofxmldocs(ifit's not password protected)2) The old style compound file format (if it IS password protected).Therefore you could probably do something like this:1) Check the first few bytes of the file2) If it'sazipfile(nonpasswordprotected),it'll start with 0x50 0x4b 0x03 0x04.3) If it'snotazipfile,thenit's probably password protected. It will start with a different binary signature (e.g. Word 2007 docs start with 0xd0 0xcf 0x11 0xe0 in this case)Basically, if it'sanew.docxor.xlsx,anditDOESN'T start with the zip signature of 0x50 0x4b 0x03 0x04, it'sprobablypasswordprotected.ForotherversionsofMSOffice,it's a bit trickier...
So it looks like it's a standard zip file.
The text was updated successfully, but these errors were encountered:
I've got
.xlsx
files that are rejected by the libUnsupported file
. Any idea what I should start looking for? Tried to add:But it breaks at:
Great job by the way. Would love to switch all future developments to a lib with a "clean" license.
Found this stackoverflow answer:
So it looks like it's a standard zip file.
The text was updated successfully, but these errors were encountered: