Example: c:/users/images/logo.png to logo.png c:\users\images\logo.png to logo.png
var filename = fullPath.replace(/^.*[\\\/]/, '')
try above this may help to get file name from any path this will support / OR \ both
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments