File Manager saves entire path
When I select a file in file manager to save into the database, it writes the entire path, including the name of the file. I need a way to strip out the path and simply have the name of the file in the database rather than the entire path.
Please advise.