I am trying to access the file input in javascript onfileselected event but it is always returning a null value. args.getFileinputfield() What is the correct way to access the input field?
Shinu. I want to retrieve the file extension in the onclientfileselected event. There I am getting the file name but no way to get the extension. Any suggestion?
You can try the JavaScript split() to extract the extension from the file name. Please have a look into the following JavaScript code i tried which works fine as expected.
JavaScript:
<script type="text/javascript">
functionOnClientFileSelected(sender, args) {
//splitting the filename and hence extracting its extension with JavaScript split method