Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPad with iOS 9.2 issue with accept pdf on input

Tags:

html

ipad

We've got a web application with:

<input type="file" accept="application/pdf"/>

Application must run on iPad. But the problem comes up when user tries to select PDF file from iCloud Drive. All files are available. Image/* works fine (it greys out all non-images).

I've also tried

<input type="file" accept=".pdf, application/x-pdf, application/vnd.pdf, text/pdf"/>

but it doesn't work.

Edit:

Still didn't find any way to fix that. For now, application has validation on server side.

like image 474
Patryk Wojtasik Avatar asked Feb 04 '16 08:02

Patryk Wojtasik


1 Answers

Seems to be an iOS Safari issue, referenced here :

https://openradar.appspot.com/36726477

like image 142
fabienbranchel Avatar answered Nov 12 '22 18:11

fabienbranchel