Skip to content

Import .docx file : error 400 : Could not convert file content #2196

@acazenave

Description

@acazenave

Bug Report

Problematic behavior
When I try the Import Docx feature, I got an error saying that the import failed.

Image

In console I see an Error 400 :
XHR POST https://docs.numerique.gouv.fr/api/v1.0/documents/ [HTTP/1.1 400 0ms]
Response : 0 | "Could not convert file content"

I have this issue with all .docx document I tried. Even one generated by the export to docx feature from Docs.

Expected behavior/code
File should be uploaded and converted to Docs format.

Steps to Reproduce

  1. Export a Docs document to docx.
  2. Then got to home page and click on the import button
  3. Select the local .docx file you have just download.

Environment

Possible Solution

Additional context/Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions