Skip to content

Commit

Permalink
Merge pull request #8835 from harness/PIPE-22924
Browse files Browse the repository at this point in the history
  • Loading branch information
krishi0408 authored Dec 11, 2024
2 parents 9bb4fa0 + 284d958 commit 501852b
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions docs/platform/variables-and-expressions/runtime-input-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,20 +468,33 @@ For example, if the original file name is `input.txt`, it will be stored as `inp
To get the exact uploaded file name, navigate to the `Output` tab of the upload step execution, where the full file name can be found.

#### Retrieve Uploaded File Using cURL
To download the uploaded file, use the following cURL command:
To download the uploaded file, use the following CURL command:

```
curl --location --request GET 'https://app.harness.io/gateway/pipeline/api/input-file/file/PLAN_EXECUTION_ID?accountIdentifier=ACCOUNT_IDENTIFIER&nodeExecutionId=NODE_EXECUTION_ID&fileName=FILE_NAME' \
curl --location 'https://app.harness.io/gateway/pipeline/api/input-file/download-file?accountIdentifier=ACCOUNT_IDENTIFIER&filePath=FILE_PATH' \
--header 'x-api-key: PAT_TOKEN'
```

Parameters:

- **accountIdentifier**: Required – Specifies the account ID.

- **filePath**: Required – The file path should follow this format:

```
accountId/runtimeFileInputData/pipelineExecutionId/nodeExecutionId/fileName.extension
```
You can extract the file path name from the step execution logs or directly via Output Variable.
:::note
**Important Notes for Uploading Files as Runtime Input:**
1. The total combined file size must not exceed 100 MB.
2. Each individual file size must not exceed 50 MB.
3. File names with spaces are currently not supported.
4. Supported file types include: `jpg`, `jpeg`, `png`, `pdf`, `xls`, `csv`, `xlsx`, `txt`, `json`, `yaml`, `xml`, and `html`.
5. The total number of upload steps per pipeline cannot exceed two. This includes using templates, saving directly as YAML, or saving through the UI.
:::
### Use the default value instead of failing
Expand Down

0 comments on commit 501852b

Please sign in to comment.