Skip to content

[BUG] Unable to upload Excel sheet files #189

Closed

Description

@marmoure

The problem

When trying to upload xlsx files using eXide to the db I get this error:

The XML parser reported a problem: fatal error at (1,1) : Content is not allowed in prolog. XMLDB reported an exception while storing document: The XML parser reported a problem: fatal error at (1,1) : Content is not allowed in prolog.

The Expected outcome

The file upload to happen without any error.

Activity

  1. marmoure commented on Apr 9, 2026

    @marmoure
    ContributorAuthor

    The following conversation happened on Element slack: https://elemental-xyz.slack.com/archives/C08J2KMEW23/p1775560143671479
    It seems like there a bug in the media type mapping file where it tries to map xlsx to XML.

  2. lguariento commented on Apr 9, 2026

    @lguariento

    The file upload also fails via XMLRPC, e.g. with oXygen:

    Operation 
    Import Files
    
    ...myfile.xlsx
    org.apache.xmlrpc.XmlRpcException: Failed to invoke method parseLocalExt in class org.exist.xmlrpc.RpcConnection: org.xml.sax.SAXException: The XML parser reported a problem: fatal error at (1,1) : Content is not allowed in prolog.
    org.xml.sax.SAXException: fatal error at (1,1) : Content is not allowed in prolog.
    org.xml.sax.SAXParseException; systemId: file:///tmp/exist-db-temp-file-manager-2663348685812551276/exist-db-temp-16639411356743654351.tmp; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
    

    Forcing it via curl as octet-stream does the trick:

    curl -v --user admin \
      -H 'Content-Type: application/octet-stream' \
      -T '...myfile.xlsx' \
      'https://myserver/exist/rest/db/apps/myapp/myfilexlsx'
    
  3. self-assigned this
    on Apr 28, 2026
  4. added this to the elemental-7.5.2 milestone on Apr 28, 2026
  5. adamretter commented on Apr 28, 2026

    @adamretter
    Member

    Closed by #193

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions