i tried send data 2 inputs php code, 1 of them text , other type file. second field multiple selection of files. well, here code of html section: <input type="text" id="padron-documento" class="form-control input-lg" name="padron-documento" placeholder="padrĂ³n" /><br /> <div class="alert alert-info"> <input type="file" id="archivos" name="archivos[]" multiple onchange="seleccionado()" /> </div> <div id="cargados"> <!-- here display loaded files. --> </div> ok, code of javascript section: function seleccionado(){ var archivos = document.getelementbyid("archivos");//we value of input id archivos var archivo = archivos.files; //here value of input (archivos) array //teh formdata object allow create form passing key/value send it, kind of object have multipar...
Comments
Post a Comment