Defines a file object which implements the file object interface
• new FileObject(init?)
| Name | Type |
|---|---|
init? |
Partial<FileObject> |
• data: any
Data of the file attachment. It can be uri or any file interface specific to channel (in web, it is file object).
• mediaType: string = 'application/octet-stream'
Media type of the file data
• name: string = 'unknown'
Name of the file
• size: number = 0
Size of the file binary as per iec specification.
▸ equals(obj): boolean
| Name | Type |
|---|---|
obj |
IFileObject |
boolean
▸ toJSON(): Object
Object
| Name | Type |
|---|---|
data |
any |
mediaType |
string |
name |
string |
size |
number |
• get type(): string
string
• set type(type): void
| Name | Type |
|---|---|
type |
string |
void