Apple文件系统从照片库中读取的权限 [英] Apple File system Permission to read from Photo Library

查看:134
本文介绍了Apple文件系统从照片库中读取的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的ios应用程序中有一个UIWebView,它将响应式网站加载到我的webview中,在asp.net中开发。网站有一个按钮,用于从设备照片库中选择视频,另一个按钮用于上传视频。

I have a UIWebView inside my ios application , which loads responsive website into my webview, developed in asp.net . Website has a button to choose video from device Photo Library and another button to upload video.

在ios版本10.2中,它将文件成功上传到服务器。
Apple在HFS +文件系统之前引入了新版本的ios 10.3和新的文件系统APFS。
在ios 10.3中,它不允许我的应用程序读取视频文件,并将0kb大小上传到服务器。这是因为我的应用程序没有该文件的读取权限。

In till ios version 10.2 it is uploading files successfully to server. Apple introduce new version ios 10.3 with new file system APFS before it was HFS+ File System. In ios 10.3 it doesnot allow my application to read video file and 0kb size is uploaded to server. This is because my app doesnot have read permission for that file.

如何允许文件系统权限从我的应用程序读取文件。是否有任何可以添加的内容到我的info.plist

How can I allow file system permission to read file from my app.Is there is anything that can be added to my info.plist

有没有人遇到过这种问题。
谢谢

Do anyone stuck with this kind of issue. Thanks

推荐答案

问题与UIWebView中的一个错误有关,它使所有文件输入都具有多个属性集自动。

The problem is related to a bug in UIWebView which makes all file input to have the multiple attribute set automatically.

iOS 10.3的唯一解决方案是使用WKWebView,它不会自动添加多个属性。

The only solution for iOS 10.3 is to use WKWebView instead, which does not add the multiple attribute automatically.

大多数使用UIWebView的旧iOS应用程序,我想这就是为什么网络上没有很多与此问题相关的错误报告的原因。

It's mostly old iOS apps that use UIWebView which I guess is the reason why there are not many bug reports on the web related to this problem.

这篇关于Apple文件系统从照片库中读取的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆