How to get file name from path
There are many ways of doing this
Using Procedure Block :
Using Extension :
App Inventor Extensions: File | Pura Vida Apps