Thursday, 6 September 2018

Any possible way to handle an action between WKWebView and Browser for selecting an image in iOS?

I want to upload a static image on select of button (as described in below screenshot) <input type="file"> on the web url from my app using WKWebView.

On click of Choose File button it will open default action sheet of device and after the selection of image, it will be uploaded on server. I want to interrupt the flow and upload my static image instead of user's selected image.

enter image description here enter image description here

Is there any observer or listener so from there we can handle request and response. Upload an image using form-data API is not available.



from Any possible way to handle an action between WKWebView and Browser for selecting an image in iOS?

No comments:

Post a Comment