Jump to content
FabDev

IOS shared document path access

Recommended Posts

Hello,

 

I'am trying to access to shared document directory on IOS.

The one you can found in default "File" application and after "On my Iphone"("sur mon Iphone" in french) :

ShareDocumentFileApp.thumb.jpg.c0c0d0de5c7c0e65a09c42e000b29cbd.jpg

Application "FileHub", "Firefox" or "FTPManager" can store shared file here, but not me 😉.

 

I have tried all path in TPath (IoUtils) class/record. Nothing seems to return it. The interesting TPath.GetSharedDocumentsPath return '' on IOS (confirmed by help).

I have began to search it on, the very good, DelphiWorld/Kastri code source (like DW.FilesSelector.iOS.pas) without success for the moment...

 

 

Edited by FabDev

Share this post


Link to post
33 minutes ago, corneliusdavid said:

I did some comparison of the IOUtils paths on various platforms

Hello,

Before I have asked my question here, I have coded an application which do something very close to your

procedure TfrmAppPaths.RefreshPathList;

Result, that confirm Delphi Help of Tpath, a lot the function return '' in IOS...

Edited by FabDev

Share this post


Link to post
6 hours ago, FabDev said:

The one you can found in default "File" application and after "On my Iphone"("sur mon Iphone" in french) :

I have added a demo to the HowTo repo that demonstrates how to achieve this.

 

Please read the readme for instructions. Note that there is no special folder - it's a case of configuration in order to share files from the documents folder.

  • Like 2
  • Thanks 2

Share this post


Link to post

Thank you very much Dave, It's work fine.

 

If I understand well with :

  • UIFileSharingEnabled
  • LSSupportsOpeningDocumentsInPlace

root of document path (= TPath.GetDocumentsPath) become shared.


Great job, you have written one of the most useful libraries Kastri and help HowTo repo (which I have missed !) of Firemonkey.

 

Edited by FabDev
  • Like 2

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×