Back to Pocketbase

Interface newFileFromURL

static/jsvm/interfaces/filesystem.newFileFromURL.html

latest936 B
Original Source

Interface newFileFromURL

Hierarchy

NewFileFromURL creates a new File from the provided url by downloading the resource and load it as BytesReader.

Example

ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) defer cancel() file, err := filesystem.NewFileFromURL(ctx, "https://example.com/image.png")Copy

Parameters

ctx: context.Context
url: string

Returns filesystem.File

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

Generated using TypeDoc