I have a radUpload control
I'd like to check file name with extension (SomeName.txt) on Client side (JS)
is there a buildin function that i can use to get filename, NOT entire path.
This code returns entire path i.e (C:\Users\Dev\Documents\SomeName.txt)
i Just need file Name.
or Anyone can suggest RegEx to extract file name????
Basically i need to validate that File name doesn't contain specific character "#".
Thanx.
I'd like to check file name with extension (SomeName.txt) on Client side (JS)
is there a buildin function that i can use to get filename, NOT entire path.
var
upload = $find(
"<%= RadUpload1.ClientID %>"
)
upload.getFileInputs()[0].value
This code returns entire path i.e (C:\Users\Dev\Documents\SomeName.txt)
i Just need file Name.
or Anyone can suggest RegEx to extract file name????
Basically i need to validate that File name doesn't contain specific character "#".
Thanx.