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 109.3 kB 2 05-Dec-2023 05:32 Sandor
png
approve_button_js.png 9.6 kB 2 05-Dec-2023 05:32 Sandor
png
assigned_admin_priv.png 37.2 kB 2 05-Dec-2023 05:32 Sandor
png
audit_log.png 21.7 kB 2 05-Dec-2023 05:32 Sandor
png
denied.png 21.5 kB 2 05-Dec-2023 05:32 Sandor
png
jump_conditional.png 22.8 kB 2 05-Dec-2023 05:32 Sandor
png
limiteddown.png 135.3 kB 2 05-Dec-2023 05:32 Sandor
png
limitedup.png 124.5 kB 2 05-Dec-2023 05:32 Sandor
png
move.png 23.2 kB 2 05-Dec-2023 05:32 Sandor
png
task_flow.png 82.4 kB 2 05-Dec-2023 05:32 Sandor
png
url.png 11.8 kB 2 05-Dec-2023 05:32 Sandor
png
user_event1.png 96.1 kB 3 05-Dec-2023 05:32 Sandor
png
user_event2.png 32.0 kB 2 05-Dec-2023 05:32 Sandor
png
user_variable.png 18.2 kB 2 05-Dec-2023 05:32 Sandor
« This particular version was published on 05-Dec-2023 05:32 by Ben Spink.
G’day (anonymous guest)
CrushFTP11 | What's New

Referenced by
CrushTask

JSPWiki