id="stop" >Upload button> /Drag and drop upload starts . " }) There not worse not No matter more in the other’s being’ themselves — (e){ //Drag and drop )
document.addeventListener ("Dragenter", function (e) {// Drags
e.preventdeFault ();
})
docume {
var pro
=
document
. getElementById('prouploadfile'); function clearpro(){
pro.value=0;
var stopbutton = document.getElementById('stop');
var box
= document.getElementById('drop_area'); //Drag area box.addEventListener("drop",function(e){
var fileList = e.dataTransfer.files; //Get the file object
console.log(fileList)
//Detect whether the file is dragged to the page .length
== 0){ 到 // Drag the picture to the browser, you can realize the preview function
// Standardized video format
// in_array
Array.prototype.s
= String .fromCharCode(2); var r
=new RegExp(this.S +e+this.S); var video_type=["video/mp4","video/ogg"];
var fileurl = window.URL.createObjectURL(fileList[0]); var str
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn