File Upload Using Jquery
<script type = "text/javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" > </script> < p id = "msg" > < / p > < input type = "file" id = "file" name = "file" / > < button id = "upload" > Upload < / button > <script type = "text/javascript" > $ ( document ) . ready ( function ( e ) { $ ( '#upload' ) . on ( 'click' , function ( ) { var file_data = $ ( '#file' ) . prop ( 'files' ) [ 0 ] ; var form_data = new FormData ( ) ; ...