Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Input[type="file"] doesnt work on ios 12.2

I have application with input type="file" that works on ios 12.1 and previous but not in ios 12.2 (the newest one). Here is the code that I used:

<input ref="input" :accept="accept" type="file" @change="fileSelected">

It doesn't give any error when debug. I read some release document, Apple said they improve security for document and stuff in ios devices but didn't see any line for how to fix. I'm using Framework 7 + Vue + Cordova

Please anyone help? Thank you!

like image 610
Tam Nguyen Avatar asked Apr 01 '19 08:04

Tam Nguyen


1 Answers

This looks like a bug in UIWebview, I solved this problem by replacing UIWebview with WKWebview。

like image 151
BelinChung Avatar answered Oct 21 '22 01:10

BelinChung