my problem:i have a code that im using to make a div behave like a file browser but it keeps on giving a error Uncaught ReferenceError: handleFileSelect is not defined
when inspected in google chromes console how to rectify it
my code:
<input class="image_select" id="image_select" type="file" name="image" style="display:none">
<script>
document.getElementById('image_select').addEventListener('change', handleFileSelect, false);
</script>
<div class="faker_select_button-singular"
onclick="document.getElementById('image_select').click();">
Select My Image
</div>
NOTE:not that the error is any problem i just dont like having errors in the website