JavaScript SDK (v0.54.0)Reference
FileData
Represents a file.
Class: FileData
Represents a file.
Constructors
Constructor
new FileData(
content,mimeType?):FileData
Initializes a file.
Parameters
content
Contents of the file.
mimeType?
string
MIME type of the file, overriding the inferred value.
If omitted, it is inferred from the file object's type property when
available, otherwise from the file extension in its name property.
Falls back to application/octet-stream if it cannot be inferred.
Returns
FileData
Properties
content
readonlycontent:FileContent
Contents of the file.
mimeType
readonlymimeType:string
MIME type of the file.