Is it possible to invoke fileupload event at button click?
I need something like this
<input type="button" onclick="return buttonClicked()">
And invoking fileupload event should come inside buttonClicked() event
function buttonClicked()
{
preventDefault();
...File upload event
}
I have been searching for this functionality for some time and it seems quite a simple functionality but couldn't find any solution for this.
really need help on this one
You may use following jQuery Plugin:
jQuery site link: https://plugins.jquery.com/uploadfile/
Github link: https://github.com/hayageek/jquery-upload-file
The pluging exposes following events as callback:
Here is the demo with nice documentation for this plugin:
http://hayageek.com/docs/jquery-upload-file.php
UPDATE : Here is the jsFiddle i've created:http://jsfiddle.net/raishul/2x32tq3p/