[#6058] fixed filesystem.fileFromURL documentation and generated type
This commit is contained in:
parent
545a4eb47c
commit
88a1867169
|
@ -1,3 +1,8 @@
|
||||||
|
## v0.23.6 (WIP)
|
||||||
|
|
||||||
|
- Fixed `$filesystem.fileFromURL` documentation and generated type ([#6058](https://github.com/pocketbase/pocketbase/issues/6058)).
|
||||||
|
|
||||||
|
|
||||||
## v0.23.5
|
## v0.23.5
|
||||||
|
|
||||||
- Fixed UI logs search not properly accounting for the "Include requests by superusers" toggle when multiple search expressions are used.
|
- Fixed UI logs search not properly accounting for the "Include requests by superusers" toggle when multiple search expressions are used.
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -771,20 +771,20 @@ declare namespace $filesystem {
|
||||||
let fileFromMultipart: filesystem.newFileFromMultipart
|
let fileFromMultipart: filesystem.newFileFromMultipart
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fileFromUrl creates a new File from the provided url by
|
* fileFromURL creates a new File from the provided url by
|
||||||
* downloading the resource and creating a BytesReader.
|
* downloading the resource and creating a BytesReader.
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
*
|
*
|
||||||
* ` + "```" + `js
|
* ` + "```" + `js
|
||||||
* // with default max timeout of 120sec
|
* // with default max timeout of 120sec
|
||||||
* const file1 = $filesystem.fileFromUrl("https://...")
|
* const file1 = $filesystem.fileFromURL("https://...")
|
||||||
*
|
*
|
||||||
* // with custom timeout of 15sec
|
* // with custom timeout of 15sec
|
||||||
* const file2 = $filesystem.fileFromUrl("https://...", 15)
|
* const file2 = $filesystem.fileFromURL("https://...", 15)
|
||||||
* ` + "```" + `
|
* ` + "```" + `
|
||||||
*/
|
*/
|
||||||
export function fileFromUrl(url: string, secTimeout?: number): filesystem.File
|
export function fileFromURL(url: string, secTimeout?: number): filesystem.File
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue