• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Show Already The Name Of Uploaded File Instead Of Showing "No File Selected"?

Hi, I have uploaded the file and now I want to show it in edit view. I know how to just echo the name below but I want to show it instead of showing: No file selected. I want to do this because each time I open the edit view, the file uploaded does not show and when I submit the form of edit view, the file is empty. This is my code in edit view:

<div class="form-group">

      <label for="example-text"><?php echo get_phrase('Browse File');?></label>

      <input type="file" name="file_name" id = "file_name" class="form-control-file" value="<?php echo $row['file_name'];?>">


Usually the value would be used in this case but that does not work. From what I have read, the value is not used in this case for security reasons. But is there any way to achieve what I am trying to do?

Any advice would be very helpful. 
Many thanks

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.