jfversluis / FilePicker-Plugin-for-Xamarin-and-Windows

FilePicker Plugin for Xamarin and Windows
MIT License
157 stars 80 forks source link

[Feature Request] Add Date to fileData #146

Closed bluekuen closed 4 years ago

bluekuen commented 5 years ago

It's hard on Android to get the File DateTime. I tried it with the string i get from google drive for example:

content://com.google.android.apps.docs.storage/document/acc%3D2%3Bdoc%3Dencoded%3DrighArrVG%2FbmPu3iP%2B8eAMUtEMOy%2BWopwMSW4Cu9GaGkVt1u6NpYWJXo7fNxKF%2BZNQ%3D%3D

I didn't find a way to get the correct Date from this FilePath and didn't find a way to do so.

It would be great if you could add the DateTime as seperate property of the FileData.

Kind Regards, bluekuen

vividos commented 5 years ago

Do you have code to do this on Android? We could surely include this code in the FilePicker if you provide it. Thanks!

bluekuen commented 5 years ago

No sadly not, i was looking for a way to do it and opened another issue relevant to this but didn't get an useful answer. That's why i thought you maybe are more into it.

vividos commented 5 years ago

I think under Android the only chance with content:// URLs would be to query the content provider for a date column, but I have no experience with that approach.

jfversluis commented 4 years ago

Closing this since this project will retire, please check out Xamarin.Essentials which now has a FilePicker based on this one.