File
RequiredFileSupply a file value for this input.
Put a file from Shortcuts on your Mac.
First, connect Mac in Services. Then open Actions → + → Mac and choose Upload File.
Running or testing this action adds something on the computer itself.
Copies the file over SFTP. A destination ending in / is a folder, and so is a destination that is already a folder: the file keeps its own name inside it. Anything else is the new file's full path. A file already there is replaced. ~/ means the home folder.
Open an input to choose its value. Keep a fixed value with Text, receive it from Shortcuts, ask when the action runs, or use an Earlier Step. Read how input sources work.
Supply a file value for this input.
A folder ending in /, or a full path with the file name.
~/Desktop/
In the action editor, open Output → Returned Value to choose fields for your shortcut. These are the response fields described by the app; a service may omit an optional field or return an empty list. JSON File contains the full response.
| Returned field | Type | Meaning |
|---|---|---|
path | string | Where the file was saved. |
name | string | The saved file's name. |
size | integer | In bytes. |
If the result is unexpected, open Logs in Shortcutify, select the run, and inspect this step’s inputs and response.
On the computer: sftp put, over a signed-in SSH session. No web request is made.
Action identifier: mac.file.upload.v1
No additional per-action permissions are declared in the app’s catalog. The integration’s connection and account access rules still apply.
| Input | Key |
|---|---|
| File | file |
| Destination | destination |