Function: Uploads files or folders to an FTP server.
Author: Peter Dekkers
Input: (Text) Files/folders or absolute paths to files as plain text arguments.
Output: (Text) Filenames of the uploaded files, prefixed by the entered Base URL.
Notes: New in this version: support for proxy servers and forced passive transfers. Warning: This action overwrites remote files without prompting. Includes three sample workflows.
Updates:
v1.4
- Fixed a bug with some servers with line endings being appended to filenames
Thanks Marcel Rivard!
v1.3 (skipped a version there, not sure why…)
- Fixed a recursion bug - Many thanks to Tom Davies!

Hi Rob. Yeah, that would be the plan, to let the script create a directory, put the files into it and copy the URL to the directory to the clipboard.
I have also noticed a slight flaw in this workflow. If you select a file, right click it and select the workflow, and then quickly select another file BEFORE the workflow has been able to detect the ’selected file in Finder’, then it will upload the second file you selected. This is a flaw of the actual Automator action, to be exact. It just means you have to always wait until it starts executing the AppleScript before selecting another file.
Also, the next version of the script will use the FTP command rather than CURL for the uploads. This will enable me to add folder support, and also enable me to add support for SFTP.
Comment by Peter Dekkers — May 23, 2005 @ 4:35 pm
Another thought Peter ( having solved that problem with sub directories (it was the trailing slash)).
How about an option to make a directory on the server to drop the selected files in and the url in the clipboard addressing the the new directory??
Comment by Rob Hudson — May 22, 2005 @ 9:56 am
Hallo Peter. Thanks for writing the FTP upload action. I too am looking forward to the next version. Folder support would be excellent.
I am having trouble sending files to any dirctory under the main directory. I am working on a virtual sever which may effect … Any ideas. I get a failed ftp upload notice with lots of zeros.
Thanks
Comment by Rob Hudson — May 22, 2005 @ 9:18 am
Keychain support would indeed be nice! Currently it kind of compromises the security of your FTP details, as they can be read by anyone who can open your workflow.
Currently, using AppleScript, I don’t see a way to efficiently write to and read from the Keychain. Keychain support is - last time I checked anyways - quite buggy in AppleScript. Please, someone, release Keychain Automator actions! :)
Comment by Peter Dekkers — May 20, 2005 @ 5:17 pm
very nice, too bad it only uploads files and no directories. Looking forward to the next version. An option to ask for server, directory and username and keychain support would be impressive of course :)
Comment by Bart — May 20, 2005 @ 4:15 am