Apple File system Permission to read from Photo Library

此生再无相见时 提交于 2019-11-30 20:30:34

问题


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.

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.

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


回答1:


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

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

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.



来源:https://stackoverflow.com/questions/43411176/apple-file-system-permission-to-read-from-photo-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!