Alert input "file" filename using jQuery with "split"
<p>I'm trying to alert the filename from a upload input.</p>

<p>Here's my <a href="http://jsfiddle.net/xwdct/" rel="nofollow">fiddle</a></p>

<p>It works, but there's the "C:Fakepath..." something like that.
I just want the filename, without the Fake path. I tried using the <code>split</code> function, but I'm not sure why it's not working.</p>

<p>Example html:</p>

<pre><code>&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Test Page&lt;/title&gt;
        &lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;input type="file" id="tester" /&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Example script:</p>

<pre><code>$(function() {
    var bogus;
    var triple;
    $('#tester').change(function() {

        triple = $('#tester').val();
        bogus = triple.split(/[\s/]+/);

        alert(bogus[bogus.length - 1]);
    });
});
</code></pre>

<p>​
Any idea?</p>

<p>Thank you!</p>
