Skip to main content

DataTransferFile

interface

A file associated with a DataTransferItem. Instances of this type can only be created by the editor and not by extensions.

interface DataTransferFile

Import

import { DataTransferFile } from '@modular/sdk';

Members3

name
string

The name of the file.

urioptional
Uri

The full file path of the file. May be `undefined` on web.

data()
() => Thenable<Uint8Array>

The full file contents of the file.