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!

Thanks Peter. One of the best features of your script is the copying of the URL to the clipboard. Hope this doesn’t dissappear in the new version!
Comment by Rob Hudson — June 10, 2005 @ 10:54 pm
Hi Rob. I just found out that in the new Automator that will get released by Apple soon, you will be able to create actions using shell script. This will make it so that I can make the workflow much much cleaner and easier to use. So I’m waiting for that. I’d say 3-4 weeks tops after the release of that new version, I’d say.
Comment by Peter Dekkers — June 9, 2005 @ 6:02 pm
Hallo Peter. Just wondering when that new version will be available.
Comment by Rob Hudson — June 5, 2005 @ 10:24 pm
Hey Carlos,
I’ve no idea at present. It should get fixed int he new release, though, as that will not use CURL anymore!
Comment by Peter Dekkers — June 5, 2005 @ 6:35 am
I always get this error when trying to run the script:
curl: (9) Uploaded unaligned file size (0 out of 78521 bytes)
The file size shown varies according to the actual file size, of course. I can upload the same files to this server using RBrowser Lite and the same credentials.
Any ideas what this means?
Comment by Carlos — May 30, 2005 @ 6:06 pm