Is it possible to find and upload a particular list of files using JQuery or JavaScript? -
i'd make routine finds predetermined amount of files found in same location, , have same filenames. possible find these files , upload them webserver, minimal user intervention?
ideally, i'd want user click button once, find these files locally , upload them webserver. going use form , make user click "search file" window each file, need upload 20 small files @ same time, approach quite time consuming.
any pointers or ideas?
is possible find these files , upload them webserver, minimal user intervention?
user should select user files user filesysystem @ each user action @ input type="file"
element . user selected files should accessible @ filelist
object within onchange
event .
if files saved @ same directory , , browser supports directory
attribute , user should able upload user selected folder.
chrome, chromium allow folder upload when webkitdirectory
attribute set ; firefox not allow folder upload currently, though user can upload multiple files @ single file dialog when set multiple
attribute setallow_dirs
attribute @ firefox.
see
- how upload , list directories @ firefox , chrome/chromium using change , drop events
- jquery file upload plugin: possible preserve structure of uploaded folders?
- how print txt files inside folder using java script
- how filereader.readastext in html5 file api works?
document.queryselector("input").onchange = function() { console.log(this.files) }
<input type="file" directory="directory" allow_dirs="allow_dirs" webkitdirectory="webkitdirectory" />
Comments
Post a Comment