iOS 11 Files 应用程序 - Google Drive 大文件导入问题

Posted

技术标签:

【中文标题】iOS 11 Files 应用程序 - Google Drive 大文件导入问题【英文标题】:iOS 11 Files app - Google Drive Large Files import issue 【发布时间】:2017-12-22 10:52:03 【问题描述】:

我在 ios 11 中使用“文件”应用。 文件应用针对 iCloud、Google Drive 和 DropBox 进行了配置

能够在 iCloud 和 DropBox 上打开大小 > 200 MB 的文本或 CSV 文件。 但是,当我在 Google Drive 上打开大小 > 200 MB 的文本或 CSV 文件时,我看不到文件内容。小文本文件不是 Google Drive 的问题。

当我们使用 UI Kit API - UIDocumentPickerViewController 时,这个问题也很明显 由于 UIDocumentPicker Apple UIKit API 使用相同的 Files App 界面并表现出相同的行为,因此我们看到 API 引发了相同的错误。

只要我选择一个大于 200 MB 的文本或 json 或 xml 文件,我就会看到这些日志条目并调用“documentPickerWasCancelled”事件。

2017-12-22 16:19:30.233311+0530 DocumentPickerTestingGrounds[3036:431736] [DocumentManager] 无法将导入的文件复制到本地容器中(错误 Domain=NSCocoaErrorDomain Code=4097 “connection from pid 2943” UserInfo= NSDebugDescription=来自 pid 2943 的连接) 2017-12-22 16:19:30.264298+0530 DocumentPickerTestingGrounds[3036:431689] [UIDocumentLog] UIDocumentPickerViewController:使用 nil 或 0 URL 调用的 didPickDocumentURLs

现在我觉得它是 G Drive 的 Google Drive 或 Files 应用程序实施的一个错误。

我无法在线找到有关此问题的任何此类参考资料或错误说明。 我尝试删除并重新安装 Google Drive 应用程序。它仍然是相同的行为。

任何指针将不胜感激。

【问题讨论】:

【参考方案1】:

好的,我必须使用 Google Drive API,然后我才能下载大于 200MB 大小的文件。

因此,iOS 11 和 GoogleDrive 中的“文件”应用存在问题。

【讨论】:

以上是关于iOS 11 Files 应用程序 - Google Drive 大文件导入问题的主要内容,如果未能解决你的问题,请参考以下文章

将文件从 iOS 11 Files 应用程序复制到沙箱

是否可以使用 Expo 将文件写入 iOS 文件系统,以便可以通过 iOS 11 Files 应用程序访问它

iOS11 在 Files 应用中保存并查看 .txt 文件

是否可以使用 Expo 将文件写入 iOS 文件系统,以便可以通过 iOS 11 Files 应用程序访问它

打开 iOS 11 Files 应用程序并显示我的应用程序的 Documents 文件夹

Could not locate device support files.《This iPhone 5 (Model A1429) is running iOS 7.0.4 (11B554a), w