This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

Upload with approval and move files.
#

This job requires a CrushFTP Enterprise license to work.


You can set up an event to trigger a job that will email the assigned approver to allow or reject the uploaded files and write an automatic entry into an audit log.

The limited user will have a folder that has upload only and another folder that has download only permissions. The approver user assigned to accept or reject the files will also need view permission for the upload folder.

attachments

attachments

attachments

attachments

attachments

The assigned approver user will need to add a custom button under UserManager, UserName (default for all users), in the QuickJump select Webinterface, scroll down a little and at the Buttons section click on 'Add'

attachments

javascript:customEvent({paths:"{files"});

Next, we add an event on the approver, its type must be 'Custom' and to do it immediately, and do it async.

attachments

We first assign a variable to hold the home folder name of this user, and we grab it out of the URL. So in our example, position 6 of the url is the folder who's name matches the username. {6url} gives that to us,a nd we assign it to a variable for use.

attachments

attachments

The jump conditional will check to make sure the approver is not approving their own file, and if they are, deny it and log an audit log entry. Set the jump conditional to validate: {upper_start}{username}{upper_end} Doesn't Equal {upper_start}{home_folder_of_file}{upper_end}

attachments

attachments

We move the item passed in from the approval to go up one level from the upload folder, then into the download folder to move the file there.

attachments

We use a WriteFile task to write a log entry to an audit log file on our drive.

attachments

And if they fail, we write a failure message.

attachments

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
png
admin_event.png 182.8 kB 1 09-Oct-2016 18:14 Halmágyi Árpád
png
approve_button_js.png 24.8 kB 1 09-Oct-2016 18:14 Halmágyi Árpád
png
assigned_admin_priv.png 94.4 kB 1 09-Oct-2016 18:14 Halmágyi Árpád
png
audit_log.png 68.9 kB 1 09-Oct-2016 18:14 Halmágyi Árpád
png
denied.png 67.0 kB 1 09-Oct-2016 18:14 Halmágyi Árpád
png
jump_conditional.png 70.6 kB 1 09-Oct-2016 18:14 Halmágyi Árpád
png
limiteddown.png 204.7 kB 1 09-Oct-2016 18:14 Halmágyi Árpád
png
limitedup.png 202.7 kB 1 09-Oct-2016 18:14 Halmágyi Árpád
png
move.png 121.6 kB 1 09-Oct-2016 18:14 Halmágyi Árpád
png
task_flow.png 191.2 kB 1 09-Oct-2016 18:14 Halmágyi Árpád
png
url.png 23.8 kB 1 09-Oct-2016 18:14 Halmágyi Árpád
png
user_event1.png 98.2 kB 1 09-Oct-2016 18:14 Halmágyi Árpád
png
user_event2.png 77.6 kB 1 09-Oct-2016 18:14 Halmágyi Árpád
png
user_variable.png 55.9 kB 1 09-Oct-2016 18:14 Halmágyi Árpád
« This particular version was published on 09-Oct-2016 18:14 by Ben Spink.
G’day (anonymous guest)

OLD WIKI!!!#

New: CrushFTPv9#

OLD WIKI!!!#


CrushFTP8 | What's New

Referenced by
CrushTask

JSPWiki