//1,第一步读取用户选中的文件 <input type="file" accept="image/*" onchange = "selectedFile()"/> function selectedFile(){ var oFile = event.target.files[0]; var fileReader = new FileReader(); fileReader.onload = function(){ var base6
<input type="file" capture="camera" accept="image/*" id="cameraInput" name="cameraInput"> $("#cameraInput").on('change',function(){ var file = this.files[0] //alert(img); var reader = new F
Html5 finally solves an age old problem of being able to upload files while also showing the upload progress. Today most websites use Flash Player to achieve this functionality. Some websites continue to use the Html <form> with enctype=multipart/fo