Page 1 of 1

FTP Upload Flow

Posted: 29 Dec 2016 21:09
by heyrob
Hello,

First off, kudos to the developer(s) of this app, it is a truly universal and well-designed app.. and the visual "flow" is fun and easy to work with! Thank you!

Secondly, I wanted to see if I could leverage Automagic to do FTP uploads, but of a more granular sort (based on file extension) from a single local folder, to multiple FTP server folder locations.

For example:

File Types: *.pdf, *.docx
From/storage/emulated/0/Documents/ > /Server Documents/Forms/

File Types: *.txt, *.xlsx
From/storage/emulated/0/Documents/ > /Server Documents/Misc Data/

Using the action "FTP Upload Files", I am (seemingly) only able to specify * and ? or variables to pull the contents of a folder. (I am hoping to use the trigger "File Observer" to initiate the FTP upload).

I have searched through the forum, and found a suggestion for *.torrent file using a script:

Code: Select all

endsWith(path, ".torrent")
... but this does not seem to work in my case. Although I am attempting to learn more about variables and expressions, I can't seem to put together an action that properly filters and uploads them to their respective locations. Any help or guidance that can be provided would be greatly appreciated, thank you!