Custom Formatters, path to url, filename form path, file extension from path

Three simple formatter extensions for managing paths in server connect

Each can be found in the "Custom File Actions" formatters group, in this case alongside an existing extension, "Get domain from URL"

Path to URL (node only)
this takes a file path and returns it's URL

So public/assets/myimage.jpg
returns /assets/myimage.jpg

Get Filename from Path
public/assets/myimage.jpg
returns myimage.jpg

Get File Extension from Path
public/assets/myimage.jpg
returns .jpg

I will be releasing PHP versions of the last two but a current Wappler bug prevents release at this time.

1 Like