Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/core
AssetResolver
Interface AssetResolver
Host upload for dropped, pasted and imported images; resolves to the hosted
src
.
interface
AssetResolver
{
upload
(
file
:
File
,
context
:
AssetUploadContext
,
)
:
Promise
<
{
src
:
string
}
>
;
}
Index
Methods
upload
Methods
upload
upload
(
file
:
File
,
context
:
AssetUploadContext
)
:
Promise
<
{
src
:
string
}
>
Parameters
file
:
File
context
:
AssetUploadContext
Returns
Promise
<
{
src
:
string
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
upload
Field Notes home
Docs
Playground
Field Notes
Loading...
Host upload for dropped, pasted and imported images; resolves to the hosted
src.