In this guide

Upload File

Put a file from Shortcuts on your Mac.

Action referenceCreate

What this action does #

First, connect Mac in Services. Then open Actions → + → Mac and choose Upload File.

What a run does

Running or testing this action adds something on the computer itself.

More about this action

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.

Inputs to fill in #

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.

File

RequiredFile

Supply a file value for this input.

Destination

RequiredText

A folder ending in /, or a full path with the file name.

Example value (replace with your own):
~/Desktop/

What comes back #

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 fieldTypeMeaning
pathstringWhere the file was saved.
namestringThe saved file's name.
sizeintegerIn bytes.

Run it from Shortcuts #

  1. Give the action a recognizable name and tap Save.
  2. In Apple Shortcuts, add Shortcutify’s Execute Action and select the saved action.
  3. Supply any Param or File slots you bound in the inputs, then run the shortcut.

If the result is unexpected, open Logs in Shortcutify, select the run, and inspect this step’s inputs and response.

Advanced reference #

Request, permissions, and identifiers

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.

InputKey
Filefile
Destinationdestination

Mac setup reference