简体   繁体   English

无法下载文件或将文件移动到外部存储

[英]Failing to download or move file to external storage

Using internal storage all works fine. 使用内部存储,一切正常。 But when trying to download to external storage I'm getting "PLATFORM ERROR" or "Incorrect destination" errors. 但是,当尝试下载到外部存储时,出现“平台格式错误”或“目标不正确”错误。 Using the path: {storage.label}/dir 使用路径:{storage.label} / dir

I'm able to create empty directories and text files on external storage using the File system API. 我可以使用文件系统API在外部存储设备上创建空目录和文本文件。

The problem was using storage.label as path. 问题是使用storage.label作为路径。 You need to resolve the storage.label and use the directory.fullPath . 您需要resolve storage.label并使用directory.fullPath

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM