nativescript-community / ui-document-picker

A NativeScript plugin that allows you to select files from the device.
https://nativescript-community.github.io/ui-document-picker/
Apache License 2.0
10 stars 8 forks source link

iOS Select document only works when keep click and display options of file #19

Closed xpalacincreditoh closed 2 years ago

xpalacincreditoh commented 2 years ago

My system:

When Open file picker this show documents disabled:

IMG_0020

If I keep click on document show options:

IMG_0021 If I click on document icon this is selected and save into app.

I have also seen that when opening the file manager I was not asked for any permission.

xpalacincreditoh commented 2 years ago

Good morning,

I test with extensions:

extensions: isIOS ? [ kUTTypePDF, kUTTypeText, kUTTypePlainText, "com.microsoft.word.doc", "org.openxmlformats.wordprocessingml.document", "application/vnd.oasis.opendocument.text", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-word", "com.microsoft.excel.xls", "org.openxmlformats.spreadsheetml.sheet", "application/vnd.oasis.opendocument.spreadsheet", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-excel" ] : [],

The valid are in Uniform Type Identifiers Reference

And works with doc and xls fine.

Thanks