FileAttempt
The outcome of trying to accept one file. What attempt actually returns is
one of the two narrower shapes below, so checking accepted is enough to
know whether reason is set.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”accepted
Section titled “accepted”accepted: boolean;file: File;message?
Section titled “message?”optional message?: string;A human-readable reason, when validate supplied one.
reason?
Section titled “reason?”optional reason?: FileRejection;