A collection of validated uploaded files for a single file field.
Provides safe (get, first) and throwing (getOrFail, firstOrFail) accessors, iteration via for...of, and inspection of the file count.
get
first
getOrFail
firstOrFail
for...of
IMPORT_PATH: "@daiso-tech/core/http-router/contracts"
"@daiso-tech/core/http-router/contracts"
Readonly
The number of files in the collection.
Whether the collection has no files.
Returns the first file in the collection, or null if empty.
null
Returns the first file in the collection.
when the collection is empty.
Returns the file at the given 0-based index, or null if out of bounds.
The 0-based index of the file to retrieve.
Returns the file at the given 0-based index.
when the index is out of bounds.
A collection of validated uploaded files for a single file field.
Provides safe (
get,first) and throwing (getOrFail,firstOrFail) accessors, iteration viafor...of, and inspection of the file count.IMPORT_PATH:
"@daiso-tech/core/http-router/contracts"