html - How to copy selected file into folder using javascript -


i want store/copy file folder using javascript. file getting input type file. .
javascript code -

function submitform(action) {     // here want copy file folder } 

html code-

<form id="exampleform" method="post" action=""  enctype="multipart/form-data" >        <input  type="file" class="upload" name="imagename" id="imagename" />        <input type="button" name="save_exit"  id="save_exit" onclick="submitform('add_question_sql.php')" value="save &amp; exit"   /> </form> 

i can not use submit button reason. how can copy file folder using javascript ?

as commented paulo, not javascript topic. on selection of file , submission of form, server-side application receive request , in position receive uploaded file , store somewhere on server.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -