jquery - How to send javascript editable FileList to server? -


in documentaion says in javascript cann't edit filelist inside 'input' element, because readonly. alternatives send other javascript filelist, can edit, server?

this html test-page:

<!doctype html> <html> <head>   <meta charset="utf-8" />   <title>test-page</title>  <script type="text/javascript"> //<!--  var fileobj, file; function init() { fileobj=document.getelementbyid('filepick');   fileobj.focus();   fileobj.click(); //should auto-trigger file-select popup, doesn't   return; }  function filed() { file = fileobj.files;   //at point should have array of "item" objects,   // containing files in directory.   //you can write code pluck whatever want array,   // , send list server.   return; }   // -->  </script> </head> <body onload="init();"> <input id="filepick" type="file" multiple="multiple" onchange="filed();" /><br /> user: please click button , select files in relevant directory.  thanks! </body> </html>  

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -