https://jsfiddle.net/yugxqopz/
I am a newbie to UI world and I have a simple use case like
1) upload the document using choose file option
2) After it is chosen, I need to call a particular function in javascript like below
<form id="fileUploadForm" onsubmit="return uploadToTempFolder();" enctype="multipart/form-data">
<input type="file" name="file" id="file" accept="application/pdf">
<input type="submit" class="button-blue" value="Upload">
</form>
Instead of choose file, I need to have an option like 'attach file' and once the user chooses the file, I don't need an extra upload button and I need to call the 'uploadToTempFolder'
Any help is appreciated.
Thanks,
Harry