UIWebView will append multiple attribute to HTML <input type="file"> tag automatically.
This behaviour varies from iOS versions, I thought this is a UIWebView's bug.
The solution is use WKWebView instead.
WKWebView outperformed UIWebView and handles <input type="file"> correctly.