filestack/filestack-js

Cannot upload .docx or .odt files

grudniewski opened this issue · 0 comments

I should be able to upload docx or odt files (the same way I do with jpg, pdf or doc file types)

When I try to upload any .docx file, I get TypeError in filestack.esm.js.
The error is thrown after subscribing to upload request:
from( filestackClient.upload( file, {}, { filename: this.fileNames[index]! } ).subscribe(res => console.log(res))
This is the same code that works for .pdf/.jpg/.doc files.

How the file variable looks like:
data:application/vnd.oasis.opendocument.text;base64,UEsDBAoAAAAAAAAAIQBexjIMJ...

image

  • Version used: both 3.26.1 and 3.27,
  • Browser Name and version: Microsoft Edge 115.0.1901.200