title: How to handle user's upload image or video from a WKWebView?
body: <p>In my iOS app I have a <code>WKWebView</code> that loads my website.</p>
  
  <p>In my website there is a HTML form that allows users to upload images.</p>
  
  <p>I want to receive when user click on this form attach button so I can request permission for Camera and Photo Library. If user rejects the access I want to dismiss the click.</p>
  
  <p>If user did not select an image from photo library and clicked cancel. The WKWebView reloads my page. I do not want it to reload my page.</p>
  
  <pre><code>@IBOutlet weak var webView: WKWebView!
  webView.navigationDelegate = self
  webView.uiDelegate = self
  </code></pre>
  
  <p>Which <code>delegate</code> functions are suitable to my case. </p>