错误:filestack.js 中的输入文件类型不受支持

问题描述

我正在尝试将 filestack.js 用于 Cordova 应用程序并在使用浏览器测试中实现它,但在 android(android 版本 10)中运行后,同时上传文件获得不受支持的输入文件类型。

`Error: Unsupported input file type
    at new e (filestack.umd.js:15404)
    at Rt (filestack.umd.js:20547)
    at e.<anonymous> (filestack.umd.js:22063)
    at filestack.umd.js:361
    at Object.next (filestack.umd.js:291)
    at filestack.umd.js:264
    at new Promise (<anonymous>)
    at a (filestack.umd.js:243)
    at e.upload (filestack.umd.js:22056)
    at e.upload (filestack.umd.js:23573)`






var options = {
        accept: ["image/*"],storeTo: {
          workflows: []
        },onFileSelected: function(file){
            console.log(file);  
        },onFileUploadFinished: function(file){
            console.log(file);
        },onFileUploadFailed: function(file,error){
            console.log(error);
            console.log(file);
        }
      };
    filePickerClient.picker(options).open();

并且在文件对象中也给我文件详细信息

`{
   filename: "bliss-windows-xp-original-640x514.jpg",handle: undefined,mimetype: "image/jpeg",originalFile: {name: "bliss-windows-xp-original-640x514.jpg",type: "image/jpeg",size: 68473},originalPath: "bliss-windows-xp-original-640x514.jpg",size: 68473,source: "local_file_system",uploadId: "FF9l73y7Mrht6zb9",url: undefined
}`

请帮我解决这个问题,先谢谢了

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...