1

This is for select-file by user. But I want to render the default selected file on page load.

<input type="file" id="file-upload" accept="application/pdf" value="Upload/<?php echo $_GET['id9']; ?>" />
Akriti
  • 773
  • 1
  • 10
  • 19

1 Answers1

1

I don't think it is possible to set a default value for a input file :(

More info here: How to set a value to a file input in HTML?

RoyB
  • 11
  • 2
  • 3
    This is really a comment, not an answer. With a bit more rep, [you will be able to post comments](//stackoverflow.com/privileges/comment). – mplungjan Jul 05 '19 at 11:23
  • Loosely interpreting the answer seems to contain the essential parts of the linked answer: "not possible" ... – Teemu Jul 05 '19 at 11:57