logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • Jake
    • Posted on Thu 13 Nov 2003

    You're right Charlotte. My mistake ;o)

    The line: return (fileTypes.join(".").indexOf(fileType) != -1)

    Generates and test the following string for the existence of ".gif"

    "gif.jpg.png.bmp"

    Obviously the .join() is not addding a period at the beginning. I'll leave this to you to work out how...

    Jake

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: