Download a portal file by address
hisinone_download_urlDownload a file from a HISinOne portal link. Provide the absolute address or path; optionally set a filename or target directory.
Instructions
Store one file that a portal page links to, for example a document link that carries a docId. The address must point at the portal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute portal address, or a path that starts at the portal root, such as /qisserver/rds?state=docdownload&docId=... | |
| filename | No | File name that replaces the name from the portal. | |
| target_dir | No | Directory for the file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the stored file | |
| filename | Yes | File name | |
| media_type | Yes | Media type that the portal reported | |
| size_bytes | Yes | Size of the stored file | |
| source_url | Yes | Portal address that delivered the file |