问题描述
我正在使用带有 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);
});
它显示在内部存储下载文件夹中,但不在“快捷方式”下载文件夹中,也不在当前文件中。我希望它显示在标记的文件夹中:
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)