keep file dialog open even after displaying alert
<p>HI Guys,</p>

<p>I have the below code where I check for the file types of the file selected.<br>
<code>hiddenFileInputFile</code> is of file input type.<br>
Below code is working fine but if the user does not supply a <code>.csv</code> file then it show the alert, which is fine, but then I want the file dialog to remain open which is not happening.</p>

<p>Please advise.<br>
Also is there any way where I can apply the filter directly to the file dialog to select only <code>.csv</code> files using jquery/javascript?</p>

<pre><code>Element.find('input.hiddenFileInputFile').change(function () 
{
            var filename = $(this).val();
            if (!/\.csv$/.test(filename)) {
                alert('Please select a csv file');
                return false;
            }
});
</code></pre>

<p>Thanks.</p>
