Works on Chrome, Firefox 3.6+, IE10+, and Opera 12+. filedrop uses HTML5 FileReader() to read file data.
Let's show thumbs of images using FileDrop.File methods.įiles. jQuery filedrop uses the HTML5 File API to allow users to drag multiple files from desktop to the browser, uploading each file to a user-specified URL. This is a directory - it has no File API object. like sendTo() and readData() - see below. as file.nativeFile and file.nativeEntry. file is FileDrop.File with native objects accessible files is standard FileDrop's FileList object. Īllow multiple selection in Browse dialog. Pure native JavaScript, no library is used. Lets you upload a file by clicking on the drop zone and, additionally, by dropping it from your computer for supported modern browsers. It accepts specified file extension(s) 3. Safari 5 provides drag & drop upload but no file reading functions. Unless you are calling it directly FileDrop will transparently translate it to readAsArrayBuffer().
IE 6-9 fire ondrop on but when the form is submitted this way sends an empty POST body so drag & drop is forcefully disabled for IE 6 (normal upload by clicking on the drop zone is still possible using iframe fallback). įirefox ~13 and later ignore overflow: hidden on