Put a file into the lambda's data
upload_fileWrite a file to the lambda's workspace - its data, which every version shares and no deploy, rollback or merge touches. With feature, to that feature's copy of the data instead, for trying things out without touching the real one. For files the lambda works with at runtime (pictures people will browse) and large input files that are not program: a model, a dataset, media. Records belong in the database, where the code writes them. Takes effect at once, without a deploy. Not for the front end: pages, scripts and styles are the program and belong in the version's resources (write_code).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative to the workspace; slashes make folders, e.g. 'models/model.onnx'. | |
| content | Yes | Text, or base64 with encoding set. | |
| feature | No | Write to this feature's copy of the data instead. | |
| encoding | No | 'base64' for binary; omit otherwise. | |
| privateKey | Yes | The editor key. |