On iOS 10.3 simulator when I try to upload an image from the Photo Library through WKWebView my app crashes with error: "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Source type must be UIImagePickerControllerSourceTypeCamera'".
On a iOS 10.3.2 device it no longer gives me the option to upload from PhotoLibrary. It just goes straight to the camera.
It works fine on previous iOS versions and I have all the required permissions. My guess is that the issue is coming internally from WKWebView.
Does anybody know how to fix this or modify the upload functionality?