2

Is there an Automator action that can upload a file/folder?

Specifically, I want to upload a folder automatically at a set date/time. I know I can create a "Calendar Alarm" action that'll trigger based on a calendar event – but I don't actually see an action that can upload to a server.

1

You can combine Automator's Run Shell Script step with the command line tool curl.

curl can upload files using the -F flag followed by a file path. See ariejan de vroom's uploading files with Curl for an example.

Your shell script can be passed a list of files from earlier Automator steps:

for f in "$@"
do
    curl -i -F "$f" http://example.org/upload
done

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .