How can i show file that i select thru browse field into html input? I want to see file that i selected before i press upload?
Here is my code:
<input id="uploadFile" name="uploadFileOne" type="text" disabled="disabled" value="<?php echo $file_name; ?>" placeholder="EWIS" class="name-info-form file-witdth" />
<input class="upload" type="file" id="uploadOne" name="uploadOne" value="Select File"/ >
remove
value=<?php echo $file_name; ?>
and use the javascript for set the name of file in textboxwhen you select the file using browse button, onchange event will fire and set the file name in text-box :)