there are several ways to upload a file to our server: FTP, Postfile,… in this example we are going to convert the file into text using a Base 64 extension and upload that text using PHP.
In my examples, the PHP code and the file we have uploaded are in the same directory, but you can change the PHP code so that it can be saved in another directory.
that is, if in the CreateDirectoryASD block you write: /my_directory , it will be created in: /storage/emulated/0/Android/data/‘namepackage’/files/my_directory
If you are going to use this extension in Android 9 or lower , you can use the blocks that contain “ASD” as I have indicated above, you can also use the blocks that do not contain “ASD”, in this case the BASE directory is:
/mnt/sdcard
that is, if in the CreateDirectory block you write: /my_directory , it will be created in: /mnt/sdcard/my_directory
This extension also contains the GetApi and GetSdkCodeName blocks, with these blocks you can check the version of Android that the device has installed.