8/10/2023 0 Comments Aspx file reader mac'Check if there is no invalid characters return the current name Private Function EscapeInvalidCharacter(fileName As String) As String 'Sample escaping of invalid windows characters Protected Overrides Function ChangeOriginalFileName(fileName As String) As String If (Path.GetFileNameWithoutExtension(fileName).Length = 0) If all characters are invalid return underscore as a file name If (fileName.IndexOfAny(System.IO.Path.GetInvalidFileNameChars()) = -1)įileName = Regex.Replace(fileName, "", RegexOptions.None, TimeSpan.FromSeconds(1.5)) Check if there is no invalid characters return the current name Private string EscapeInvalidCharacter(string fileName) Sample escaping of invalid windows characters Protected override string ChangeOriginalFileName(string fileName) Public class CustomHandler : AsyncUploadHandler
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |