Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for picking a directory #23

Closed
kinex opened this issue Dec 29, 2018 · 7 comments
Closed

Add support for picking a directory #23

kinex opened this issue Dec 29, 2018 · 7 comments
Labels
suggestion New feature or request

Comments

@kinex
Copy link

kinex commented Dec 29, 2018

Usage scenario: To export data from an app user must be able to select an output directory where to save the file. Tip for iOS implementation: see UIDocumentPickerMode.ExportToService

@miguelpruivo miguelpruivo added the suggestion New feature or request label Dec 29, 2018
@kgamecarter
Copy link

Android implementation
https://github.com/googlesamples/android-DirectorySelection

@miguelpruivo
Copy link
Owner

This was actually wip to the current deployed version 1.3.0, however, this should be more discussed as Android actually allows it but iOS don't.

In iOS we usually either use the share capabilities to save/send some data or we use the app's data container to keep it. If we want to retrieve some directory it is possible but I believe that a concrete file pick is always required.

I was trying to avoid platform-specific features with this plugin and it's been already a tough task to fulfill because they differ fairly in the way they handle file picking. Nevertheless, I'm up to suggestions.

@rockgecko-development
Copy link

When I select a directory via getMultiFilePath via iCloud Drive, I get a folder containing .<orig name>.icloud files, of 175 bytes each.
I suppose this is because iCloud doesn't download the entire directory when you select it, unlike for individual files. But what do i do with these .icloud files, and how do I get the originals?

@miguelpruivo
Copy link
Owner

@rockgecko-development you are saying that you are able to select a folder when multi picking files?

@rockgecko-development
Copy link

@miguelpruivo yes.
Steps to reproduce:
iPhone 6, iOS 12
Call getMultiFilePath (it's not possible to select a folder in iCloud Drive with getFilePath)
Under Locations, choose iCloud Drive, then in the top bar press Select, which displays checkboxes for each item. Select a folder, then Open
In the result map, you get a folder which contains the .<orig name>.icloud placeholder files. Do you know what to do with these?

@miguelpruivo
Copy link
Owner

miguelpruivo commented May 19, 2019

Thank you @rockgecko-development. Definitely I wasn’t expecting folders of being able to be picked in iOS so that’s probably the issue.

I’ll certainly look forward this in a future update.

@miguelpruivo miguelpruivo mentioned this issue Jun 20, 2019
6 tasks
@miguelpruivo
Copy link
Owner

Moved to #99.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants