jcesarmobile / FilePicker-Phonegap-iOS-Plugin

This plugin makes possible to pick files from iCloud or other document providers
MIT License
50 stars 51 forks source link

Regarding excel sheet issue #33

Open AgNm opened 7 years ago

AgNm commented 7 years ago

Hello,

In my app, I want to fetch only excel file (.xlsx) from cloud & send it to server. I'm using google drive as well as iCloud. Everything is working fine with iCloud.

But while choosing from google drive, the file which I'm fetching is .xlsx, but it is opening as PDF. I used UTI = "public data".

Please see below image:

img_0599

Also I went through this document : https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html

It has identifier for xls files (UTI = "com.microsoft.excel.xls") but there is no identifier for .xlsx files.

Can anyone please let me know if I'm missing something.

jcesarmobile commented 7 years ago

I've tried with a few .xlsx and they are opening as .xlsx, can you share the file with problems?

As you say, there is no identifier for .xlsx

AgNm commented 7 years ago

Have you tried fetching file with Google Drive? Is there any file permission access issue?

As the files which gets generated in Google Sheets are spreadsheets, so I have to convert it into .xlsx extension to get access to it properly.

AgNm commented 7 years ago

Can you please check & reply asap? I have deliver the app to client...

jcesarmobile commented 7 years ago

Sorry, I was on holiday and forgot to answer when I got back Yes, I fetched a .xlsx from Google Drive without problems.

If it's a Google Sheet, it isn't a .xlsx, I think I wasn't able to get Google Sheet files