$fn.getPresignedUrl(path,options)
Issues a signed URL to access a file manager in the WebPerformerNX execution environment. "asynchronous"
Argument
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
path | string |
| ||||||
options | object | Signed URL validity time |
Options Details
Property | Type | Description |
---|---|---|
expiresIn | number | Validity time of signed URL (seconds) Default is 900 |
Return value
Type | Description |
---|---|
String | Signed URL |
Sample
// Query parameter (cache:don't save, MIME type:application/pdf) specified in file pathconst path = $ui.filePath.value + "\?response-cache-control=no-store&response-content-type=application/pdf";// Issuing a signed URL with a validity time of 10 minutes$ui.url.value = await $fn.getPresignedUrl(path, {expiresIn:600});