I need help with this web wrapper app. In my app there is one UIWebView and it was working perfectly when I call input tag from UIWebView to access file and I haven't added any multiple in my code but still, the app is selecting multiple images but I want one image selection. please help me. here is my code.
[webPage loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:60.0]];
[webPage setOpaque:NO];
webPage.backgroundColor = [UIColor clearColor];
webPage.scrollView.bounces = NO;
webPage.delegate = self;
[self.view addSubview:webPage];
and i have simple <input type="file" />
The issue is UIWebView appends multiple attribute to HTML tag automatically. This behaviour varies from iOS versions, I think this is a UIWebView's bug.
I had the same problem.Migrate to WKWebview from UIWebview, it's faster and will resolve this issue . Apple too recommends using WKWebview if app support is iOS 8.0 and above.
iOS Code
Html used