AN_SafeFileName

Clean filename from special characters to make it safe for server upload
Then if parameter passed, it will cut the filename to certain length
Characters will be removed are \/*+=?&$#%,
NewLength if more than 0, it will cut to get the left part of filename for this length
NewLength make it as 0 or "" to get full filename


Public

Tested

My Own Work

FileName, NewLength

Views 1380 Downloads 440