Why can the second parameter ``formdata.append () `wear through the object?

scene: the image information obtained through the camera is the data containing rui . To upload the file, the code to Baidu is:

What you see in
  document  is: 

formData.append (name, value, filename)

value
The field"s value. This can be a USVString or Blob (including
subclasses such as File).

The

document mentions that the parameter is USVString or Blob , so why can you use an object that contains file information instead?

Mar.04,2021

you can print that file, is actually a js object

console.log(document.querySelector('input[type=file]').files[0])
Menu