Preparing search index...

    Function extractFilenameFromUri

    • Extracts the filename from a full image URI by stripping the app directory prefix.

      If the URI doesn't contain the directory prefix, returns it unchanged (assumes it's already a filename).

      Parameters

      • imageUri: string

        Full image URI (e.g., "file:///documents/Recipedia/pasta.jpg")

      Returns string

      Just the filename (e.g., "pasta.jpg")