gpt4 book ai didi

ios - 允许用户浏览文件和上传所选文件的 Cordova 插件 (iOS)

转载 作者:行者123 更新时间:2023-11-28 18:51:38 28 4
gpt4 key购买 nike

是否有 Cordova 插件允许用户浏览文件、选择文件并将其上传到 iOS 上?我只找到了 3 个插件:File Opener 2 插件、Cordova 文件插件和 File Transfer 插件,但它们都不符合我的需要。有人这样做吗?

最佳答案

iOS

引自 Mike Harrington(Ionic 开发者倡导者)

For iOS, you sadly don't have a file browser/chooser.

Not going to be possible sadly.

source

但(同一来源)根据同一论坛上的用户

Apparently there's this one, haven't tried it and sadly it's only for iOS8 (and higher?):

FilePicker-PhoneGap-iOS-Plugin

Anyway I suppose that if you understand the physical file system structure of iOS and you have the time then you could always build a UI yourself using the Cordova File plugin. Don't know about iCloud and so on though.

By the way, I tried Cordova-filechooser and it worked perfectly.

The other one seems more complicated to set up and gave me build errors on my initial attempt, so I went with the other one.


安卓

cordova-filechooser 插件与文件传输结合使用可能会解决您的问题。

图像取自 cordova-filechoosergit repo

enter image description here

使用它来选择您的文件。使用文件传输来传输它们。


关于ios - 允许用户浏览文件和上传所选文件的 Cordova 插件 (iOS),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40759618/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com