module Hydra::Works
This was taken directly from Sufia's GenericFile::MimeTypes
The default virus scanner for Hydra::Works
If ClamAV is present, it will be used to check for the presence of a virus. If ClamAV is not installed or otherwise not available to your application, Hydra::Works
does no virus checking add assumes files have no viruses.
To use a virus checker other than ClamAV:
class MyScanner < Hydra::Works::VirusScanner def infected? my_result = Scanner.check_for_viruses(file) [return true or false] end end
Then set Hydra::Works
to use your scanner either in a config file or initializer:
Hydra::Works.default_system_virus_scanner = MyScanner
Constants
- VERSION