Cyclic Redundancy Check (CRC)
Description
A cyclic redundancy check (CRC), as used in wzdftpd, is a 32bit (4 byte) checksum calculated for each uploaded file. Checksums can be used to verify the integrity of files uploaded to the server, via use of an external script.
Enabling On-The-Fly CRC checking
wzdftpd supports on-the-fly CRC calculation, which will calculate the CRC on incoming file uploads in real time (as opposed to after the file upload has been completed). To enable this feature, you must make some changes to your wzdftpd configuration file.
Under the [GLOBAL] section, make sure the two following statements are listed, and are both true.
[GLOBAL] experimental = true auto crc = true
Depending on the zipscript you are using, you will also need to change the [events] section of the configuration file. Make sure that under this section, you have an appropriate POSTUPLOAD event trigger configured. A generic example is shown below:
[events] zipscript = POSTUPLOAD /home/wzdftpd/scripts/zipscript %lastfilename %lastfilecrc
Please note that you can adjust the cookies sent via command line arguments to suit your needs.
Using this feature with third party zipscripts
Please see the pzs-ng script page for full information on how to setup and configure this script with wzdftpd.
