I am attempting to convert a File into a Blob, but it seems that I am unable to do so as File is not a subclass of Blob.
I have tried methods such as: <Blob>file
and file as Blob
.
However, I keep encountering the same error:
Type 'File' cannot be converted to type 'Blob'. Property 'size' is missing in type 'File'.
Can someone please help me identify what mistake I am making?