fengyuanchen / compressorjs

JavaScript image compressor.
https://fengyuanchen.github.io/compressorjs/
MIT License
5.23k stars 438 forks source link

Type RcFile is not compatible #155

Open ytqtina opened 2 years ago

ytqtina commented 2 years ago

image When I upload an RcFile, there comes an error that my input file is not a Blob object. Source code in 'index.js' looks like this.

fengyuanchen commented 2 years ago

What's the RcFile? Is it an image?

ytqtina commented 2 years ago

Type File is a prototype of RcFile. It seems that type check only passes Image and File themselves, not their extenders.

fengyuanchen commented 2 years ago
console.log(window.RcFile)

👇

Uncaught ReferenceError: RcFile is not defined
fengyuanchen commented 2 years ago
fengyuanchen commented 2 years ago

So I don't know what RcFile is.