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