File.prototype.name

The file name.

Syntax

name

Example

let file = new File(['Hello, world!'], "hello.txt")
file.name
"hello.txt"