Remain Upload File In Submit Form
i just want to know is there any way to remain the upload files(not yet
uploaded to server) in submit form?
I have a page, in that page i have multiple upload file and i also have
1st drop down list that will populate 2nd drop down menu (the data
retrieve from database). so in my case, when user choose file(s) to
upload, the file name will display below the browse button. My problem is,
when the user click on 1st drop down list, i have to post the form so that
it will populate 2nd drop down list and the file(s) that been chosen will
disapear.
Here ,my code..and thanks in advance..
<script src="jquery-1.9.1.min.js" type="text/javascript"
language="javascript"></script>
<script src="jquery.MultiFile.js" type="text/javascript"
language="javascript"></script>
<script type="text/javascript" language="javascript">
$(function(){ // wait for document to load
$('#picture').MultiFile({
STRING: {
remove: '<img src="bin.gif" height="16" width="16" alt="x"/>'
}
});
});
</script>
<form action="upload_file.php" method="post" enctype="multipart/form-data" >
<table width="80%" border="0" cellspacing="0" cellpadding="0">
<label for="file">Filename:</label>
<input type="file" name="picture[]" id="picture" ><br>
here goes for the drop down menu code, which i used
onchange="this.form.submit();
No comments:
Post a Comment