问题
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