0

I want to change the filename in the input file object with JS. Reading the filenaname works.

 var x = document.getElementById("myFile").files[0];

 alert( x.name);

We can change the filename and write back? Many thanks for your help.

Harold
  • 1
  • 1
  • Please visit [help], take [tour] to see what and [ask]. Do some research, search for related topics on SO; if you get stuck, post a [mcve] of your attempt, noting input and expected output, preferably in a [Stacksnippet](https://blog.stackoverflow.com/2014/09/introducing-runnable-javascript-css-and-html-code-snippets/) – mplungjan Jan 23 '22 at 18:54

0 Answers0