Skip to content

Settings and activity

5 results found

  1. 20 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Tom Fraser supported this idea  · 
    An error occurred while saving the comment
    Tom Fraser commented  · 

    //This may work on the client side. It also happens when attaching when attaching documents in emails.

    function sanitizeFileName(fileName) {
    // Replace all invalid characters with an underscore
    return fileName.replace(/[,\s]/g, '_');
    }

    document.getElementById('fileInput').addEventListener('change', function(event) {
    let file = event.target.files[0];
    let sanitizedFileName = sanitizeFileName(file.name);

    // Here you would set the sanitized file name to the file input or handle accordingly
    console.log('Sanitized file name:', sanitizedFileName);
    });

  2. 15 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Tom Fraser supported this idea  · 
  3. 9 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Tom Fraser supported this idea  · 
  4. 5 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Tom Fraser shared this idea  · 
  5. 3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Tom Fraser shared this idea  ·