Unable to upload docx saved with libre writer my organization automation portal

I have saved the attached lms-docx-upload-libreoffice-save.docx file with libre writer and opened it in MS word and saved as lms-docx-upload-msword-save.docx . I can upload (attach) the MS word file to my organization automation portal fine but when uploading the libre writer saved file, the website gives error:

“file extension is not consistent with the file content”

lms-docx-upload-libreoffice-save.docx (5.0 KB)
lms-docx-upload-msword-save.docx (11.0 KB)

The file type is definitely DOCX (OOXML) - you may check the ZIP package. Word has no problem with the file. So the question is: what broken logic does the (unknown) portal software use to check if that is indeed the consistent content?

@mikekaganski How do I know?

It might inspect the docProps/app.xml to see which application has created the document.

This one is created by Google Docs. It does not have an app.xml subfile at all.
ExportByGoogleDocs.docx (6.4 KB)

And this one is made by TextMaker.
ExportByTextMaker.docx (12.1 KB)

@faridcher: Try to upload these files. If they are rejected too, then you know, that the reason is in the portal software.

The portal gives the same error for both. I edited libreoffice docx docProps/app.xml file and changed the <application> element content to “Microsoft Office Word” (copy/pasted from the MS word saved docx) but it still gives the same error. I even copy/pasted the entire app.xml from MS word docx to LO docx, but the issue persists.

It might be reading the rsid tags in settings.xml to see if it is an updated document. See Rsid Class (DocumentFormat.OpenXml.Wordprocessing) | Microsoft Learn

I don’t see the tags in the same place in the LibreOffice document.

We are just guessing here. There are myriad of possible differences between what Word generates, and what LibreOffice generates - even without making the LibreOffice-generated document invalid. The only proper thing to do here is to post a sample document causing the problem to the makers of the portal. Only they can answer what is the problem, and if it’s their fault, or the actual problem of the document.