Extracts the filename from a file path. For example, ‘/uploads/image.jpg’ returns ‘image.jpg’.
Takes a full file path and keeps only the last part: the filename itself, including its extension. Everything before the final slash is dropped. Use this when a field holds a complete path but you only need the file’s name, for example to store or display an image’s name without all the folders in front of it.