-
Type:
Suggestion
-
Resolution: Unresolved
-
Component/s: Page - Import
-
None
-
1
Issue Summary
Confluence page import feature on MS Word can return 'file type does not match' error when the source file is of docx file.
The expected MIME type for docx file is 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'.
If a docx file has MIME type other than this, page import feature does not support the file.
Steps to Reproduce
- Determine a source file that has a different MIME type (e.g. application\haansoftdocx)
- Mac Terminal
File --mime-type -b InputFile.docx
- Windows PowerShell
Add-Type -AssemblyName System.Web [System.Web.MimeMapping]::GetMimeMapping("C:\Path\InputFile.docx")
- Mac Terminal
- Import a page in word (.docx)
- The error message reads 'Only .DOCX files are supported We couldn't import the file you selected because it is the wrong file type. Select a different file to continue.'
Expected Results
- All files with the docx extensions are supported.
- When the feature fails, the perceived MIME type is reported and prints the expected MIME file type.
Actual Results
Currently the failure says ' the file type does not match' even though the source file has the docx file extension.
Workaround
- Uninstall the MS Word substitute application and only leave the Microsoft Word to handle docx files.
- Import it from another machine.
- Upload the docx file to onedrive or convert to google docs to import the page.