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

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

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -