• Replaces '' with '_' or 'File Name' if empty

    Parameters

    • fileName: string

      file name to sanitize

    Returns string

    sanitized file name supported by laserfiche repository

    sanitizeFileName(' | \\ trimBetweenSpecial \\ | '); // '| _ trimBetweenSpecial _ |'
    sanitizeFileName('fake/folder/name\\'); // 'fake/folder/name_'
    sanitizeFileName(' '); // 'File Name'