Pre-download events let you trigger an event before the user downloads a file, and with that process you can then do different actions. Some examples might be scanning the file for viruses, some other validation n the file, watermarking a file, compressing it, etc..

In our scenario it requires an enterprise license due to the usage of the jump task. In general this feature is intended for an Enterprise license.

We create the job separately on the jobs tab and then we reference that job in the event config for the user in the User Manager. This example will demonstrate a zip compression and using this temporary file instead of the original for the download.

attachments

attachments

attachments

attachments

attachments

attachments

attachments

attachments

attachments

Attached you have a job example as well, that you can download and place inside the CrushFTP⁩ ▸ ⁨Job⁩ ▸ ⁨"Predownload" folder and then configure it from the CrushFTP ⁩ ▸ ⁨WebUi⁩ ▸ ⁨Admin⁩ ▸ ⁨Jobs tab as needed. The initial job name must be "Predownload" sicne that si what the job.XML is referencing, but you can copy or rename it in the Job's tab UI after initially loading it.
attachments(info)

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
delete_task.png 37.7 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
png
event_config.png 196.6 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
png
failed_download_task.png 58.4 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
png
failed_email_task.png 65.7 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
xml
job.XML 58.6 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
png
job_config.png 210.5 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
png
jump_task.png 57.2 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
png
user_variable_task.png 37.7 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
png
wait_task.png 38.3 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
png
zip_task.png 43.6 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
« This page (revision-7) was last changed on 05-Dec-2023 05:32 by Ben Spink
G’day (anonymous guest)
CrushFTP11 | What's New
JSPWiki