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 multiple attribute set set allow_dirs attribute @ firefox.

see

document.queryselector("input").onchange = function() {    console.log(this.files)  }
<input type="file" directory="directory" allow_dirs="allow_dirs" webkitdirectory="webkitdirectory" />


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -