On this page

C

File

History
class File extends Blob

A File provides information about files.

C

buffer.File Constructor

History
new buffer.File(sources, fileName, options?): buffer.File
Attributes
sources:string[] | ArrayBuffer[] | TypedArray[] | DataView[] | Blob[] | File[]
An array of string, ArrayBuffer, TypedArray, DataView, File, or Blob objects, or any mix of such objects, that will be stored within the File.
fileName:string
The name of the file.
options:Object
endings:string
One of either 'transparent' or 'native'. When set to 'native', line endings in string source parts will be converted to the platform native line-ending as specified by require('node:os').EOL.
type:string
The File content-type.
lastModified?:number
The last modified date of the file. Default: Date.now().
P

file.name

History
Type:string

The name of the File.

P

file.lastModified

History
Type:number

The last modified date of the File.