ios - Flutter - FileSystemException : Cannot open file, path = '/path'(操作系统错误 : Operation not permitted, errno = 1)在 ios 上

标签 ios flutter

我在 ios 上使用 multi_image_picker:4.5.9,当我拿起图像并获取文件的路径时,我想将此文件上传到服务器,但出现错误。

最佳答案

发生此错误的原因可能是该文件可能尚不存在。所以你应该在打开文件之前检查文件是否存在。

使用 file.existsSync()在打开它之前。

关于ios - Flutter - FileSystemException : Cannot open file, path = '/path'(操作系统错误 : Operation not permitted, errno = 1)在 ios 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58986742/

相关文章:

ios - FlipView Controller 字符在不同的地方

android - Flutter - json_serializable fromJson : The method '[]' was called on null

flutter - Dart/Flutter super (key:key)示例

iOS:NSDecimalNumber 计算和货币的准确性

ios - 如何允许用户像 snapchat 一样添加文本?

android - 用surfaceview播放视频时出现问题

flutter - 无法在flutter中显示BottomNavigationBar

Flutter 平台 channel 调用的两个方向?

ios - 附加您的 <bundle_ID> 目录。它是什么?

ios - 使用 AWS Cognito 在 iOS 应用程序中获取描述性登录错误消息