I have a html form to upload files. After uploading if user need to edit the details the form is shown again with the data values populated from the database. How could i possibly show previous values of the uploaded files in the input type=file.
To be more specific this is my form:
<form>
<div class="form-row">
<input id="equipmentname" type="text" value="<?php if(isset($equipment)){ echo $equipment[0]->equipmentname;} ?>" name="equipmentname" />
</div>
<div class="form-row">
<input type="file" id="userfile" name="userfile" size="20" onChange="getImage(event);" />
</div>
<div class="form-row action_btnContainer">
<input id="createEquipmentBtnCreate" name="file_upload" type="submit" value="Add" class="btnCreate" onclick="checkEquipmentCreateForm(event);" />
<input id="createEquipmentBtnCancel" type="button" value="Cancel" class="btnCancel" onclick="closeSitePopUp('EquipmentCreateForm');" />
</div>
</form>
Like i have echoed the 'equipmentname' in its textfield How could i possibly show the previous upload file value in its respective inputfield. Any suggestions are welcome. Thanks.