filestack / filestack-js

Official Javascript SDK for the Filestack API and content ingestion system.
https://www.filestack.com
MIT License
206 stars 78 forks source link

Cannot upload .docx or .odt files #529

Open grudniewski opened 1 year ago

grudniewski commented 1 year ago

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