Ionic - 文件下载未显示在正确的下载文件夹中

问题描述

我正在使用带有 Capacitor 的 Ionic React 应用程序。

我有以下代码

media="all"

文件保存到这个位置:

      const filePath = File.externalRootDirectory + "Download/" + name; 
    
      HTTP.downloadFile("https://url.com/uploads/"+match.params.id+"/"+name,{},filePath).then(response => {
        // prints 200
        console.log('success block...',JSON.stringify(response));
    
        }).catch(err => {
        // prints 403
        console.log('error block ... ',err.status);
        // prints Permission denied
        console.log('error block ... ',err.error);
        });

显示在内部存储下载文件夹中,但不在“快捷方式”下载文件夹中,也不在当前文件中。我希望它显示标记文件夹中:

enter image description here

解决方法

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

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

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