javascript - How to AddFile using ActiveX in Plupload? -


my machine connected scanner. scanner can return couple of images , can paths of these images in web page. want upload these images using plupload plugin. can these file using activex. when call addfile function, doesn't work. seems file returned activex not suitable addfile function. how can ?

//scanfilepath such as:  d:\image001.jpg  var fso = new activexobject("scripting.filesystemobject");  var f1 = fso.getfile(scanfilepath);  var i_upload = $("#uploader").pluploadqueue();  var tmp = scanfilepath.split("\\");  var filename = tmp[tmp.length-1];  i_upload.addfile(f1, filename);


Comments

Popular posts from this blog

javascript - Hide toolbar of pdf file opened inside iframe using firefox -

Copy range with conditional formatting -

Ansible - ERROR! the field 'hosts' is required but was not set -