Update 1.7. release
With the release of version 1.6 I introduced a new block which allows developers to download files to the ASD of the app.
With this new release, version 1.7, it is now also possible to upload files from the ASD! A File component is required for this to work. The extension makes use of the listpicker class (without having to load the actual component) in order to display and allow selection of files from the ASD.
This video demonstrates this new feature on an installed app on Android 13. The Project Filescope is set to App. I have used a file upload web page from a different project to help demonstrate.
Developers will also need to use the provided helper blocks. It is important to ensure that the extension is provided with valid file paths from which an uploading web page can select. Failure to do so will crash the extension/app.
-
Two list variables, one for directories and one for files


-
These blocks for the Screen Initialise event. This sets up the extension, and sets ASD as the upload directory. It also calls the procedure that lists the files in the ASD. You can put all these blocks into a procedure so that you can update the file listing when it changes.
-
A short procedure to setup the ASD file path
-
A procedure block (called from Screen Initialise) that calls two further procedures, to get all the folders and subfolders in the ASD, the one to get all the files in folders and subfolders in the ASD. Files from nested folders include their relative file paths.
-
The getAllFolders procedure
-
The getFilePaths procedure. Note the setting of the ASD Files and Path using the extension block as the last part of this procedure
Note (advanced): it is possible to change the root/parent location to other directories, e.g. Shared if you want to use this method on other locations.




