Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ getAsFile
Method
getAsFile
packages/react-aria/test/dnd/mocks.js:26–30 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
24
}
25
26
getAsFile() {
27
if
(this.kind ===
'file'
&& this._data instanceof FileSystemFileEntry) {
28
return
this._data._file;
29
}
30
}
31
32
webkitGetAsEntry() {
33
if
(this.kind ===
'file'
) {
Callers
3
files
Method · 0.80
readFromDataTransfer
Function · 0.80
PromptTokenField
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected