tufanv Expert Licensed User Longtime User Mar 9, 2023 #1 Hello, I am using qbimagepicker lib for b4i to select multiple image files in my app. After selection I get this: B4X: Copy "<PHAsset: 0x149ca3870> 1076169E-8400-4A80-9E7F-0050AF2922D8/L0/001 mediaType=1/0, sourceType=1, (2160x3840), creationDate=2023-01-18 11:52:40 +0000, location=0, hidden=0, favorite=0, adjusted=0 " I want tp upload this image to remote server with php but there is no location just a file name (or stg like that). How can I reach this file for uploading? If it is not possible, should use outputstream to copy the file to own app folder and upload from there maybe? Thanks
Hello, I am using qbimagepicker lib for b4i to select multiple image files in my app. After selection I get this: B4X: Copy "<PHAsset: 0x149ca3870> 1076169E-8400-4A80-9E7F-0050AF2922D8/L0/001 mediaType=1/0, sourceType=1, (2160x3840), creationDate=2023-01-18 11:52:40 +0000, location=0, hidden=0, favorite=0, adjusted=0 " I want tp upload this image to remote server with php but there is no location just a file name (or stg like that). How can I reach this file for uploading? If it is not possible, should use outputstream to copy the file to own app folder and upload from there maybe? Thanks
tufanv Expert Licensed User Longtime User Mar 9, 2023 #2 I was able to do it with this code: B4X: Copy Dim no As NativeObject=assets.Get(0) Dim fn As String=no.GetField("_filename").AsString Dim dir As String=no.GetField("_directory").AsString Log(dir) Log(fn) Upvote 0
I was able to do it with this code: B4X: Copy Dim no As NativeObject=assets.Get(0) Dim fn As String=no.GetField("_filename").AsString Dim dir As String=no.GetField("_directory").AsString Log(dir) Log(fn)