Back to Pocketbase

Function fileFromURL

static/jsvm/functions/_filesystem.fileFromURL.html

latest896 B
Original Source

Function fileFromURL

fileFromURL creates a new File from the provided url by downloading the resource and creating a BytesReader.

Example:

// with default max timeout of 120secconst file1 = $filesystem.fileFromURL("https://...")// with custom timeout of 15secconst file2 = $filesystem.fileFromURL("https://...", 15)Copy

Parameters

url: string
Optional secTimeout: number

Returns filesystem.File

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

Generated using TypeDoc