iOS Question Copy file

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello,

I would like to know how to copy the files I selected with DocumentPickerViewController to the xui.DefaultFolder. Can you please help me with that?

Thank you.

Best regards.
 

Alexander Stolte

Expert
Licensed User
Longtime User
B4X:
    Dim DocumentPicker As DocumentPickerViewController
    DocumentPicker.InitializeImport("picker", Array("public.image"))
    DocumentPicker.Show(B4XPages.GetNativeParent(Me), xlbl_MiddleButton)
    Wait For Picker_Complete (Success As Boolean, URLs As List)
        
    Wait For (File.CopyAsync(URLs.Get(0), "",File.DirLibrary, "myimage.png")) Complete (Success As Boolean)
or read the tutorial
 
Upvote 1
Top