Core
struct.file
Struct that accepts a File.
@defjs/core · Function
Signature
function file(): Struct<File, File>;
-
Accepts a
Fileonly; a plainBlobfails withinvalid_type. -
Use it for a field of struct.formData(), or for a raw file body.
-
As an
outputorerrorstruct it makes the response body be read as a blob.