Reads a file from the file system and returns an SdkFile object that contains the file data and metadata.
SdkFile
The MIME type of the file.
An SdkFile object that contains the file data and metadata.
const filePath = '/path/to/file.txt';const fileType = 'text/plain';const file = fileFromDrive(filePath, fileType);// Now you can use the `file` object as needed. Copy
const filePath = '/path/to/file.txt';const fileType = 'text/plain';const file = fileFromDrive(filePath, fileType);// Now you can use the `file` object as needed.
Reads a file from the file system and returns an
SdkFile
object that contains the file data and metadata.