Version :
Be especially careful when using delete task as you colud delete the original and copy.
%user_name%, {real_path}, {path}, {name}, {size}, {speed}, {error}
Example: If the command was "cp" and the argument was "{real_path}:/archive/{name}"
Then, if a file was uploaded to "/uploads/stuff.zip", it would be copied to "/archive/stuff.zip" Note the purpose of the "." in that it separates argumets to the command.
If an item matches the filter, it will be excluded from the future task processing.
Leave both fields blank to always be a true condition.
This feature is only available in enterprise licenses.
Request this file be processed by the Preview function in the CrushFTP prefs.
Variables can be used for filenames, as part of an email address, email body, subject, or event as part of the command for the Execute task.
In the body of an email: <LINE>Text and {variable} items can exist.</LINE> This will result in the line repeating for each item found. (Multiple file upload or download type of event.) {r} is a return character and {n} is a new line character. {task_error} will output the error encountered if any. File item references: {url} actual url that points to the file {path} path to the file {parent_path} path to the file {name} name of the file {stem} first part of the name before the dot {ext} end part of the name including the dot {size} size of the file {speed} speed of the transfer {error} error message for the transfer if any {start} start time {end} end time {resume_loc} resume location in file {md5} MD5 hash of the uploaded file {user_dir} the directory the user saw when uploading {real_path} files local path on disk {real_parent_path} files parent folder's local path on disk Additionally date tags can be used: {MM} month {dd} day {yy} or {yyyy} year {HH} 24 hour {mm} minute {hh} 12 hour {aa} AM or PM {ss} seconds {S} milliseconds {EEE} weekday abbreviation (Placing a '.' before the item name will result in the current time. A '_' will result in the file items end upload time. Ex: {.S},{_ss})
Here is an example of what you might use this plugin for.
When files are uploaded to your server, you want them backed up to another server, and an email notification sent out letting someone know about the files on the alternate server. So here are the tasks: MakeDirectory: filter=* /archived_{MM}{dd}{yy}/ Copy: filter=* destination:ftp://myuser:pass@192.168.1.65/newFiles/ Move: filter=* destination: /archived_{MM}{dd}{yy}/ Email: filter=*192.168.1.65* |