Closed (outdated)
Project:
Filestore2
Version:
master
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2004 at 23:36 UTC
Updated:
11 Jun 2025 at 13:27 UTC
Jump to comment: Most recent
Comments
Comment #1
gordon commentedYes this could be done, I will do this when I have time, and do it in filestore2.
All that really needs to be done is to add an extra field to the _settings() subroutine to tell filestre where the the clamav executable is, and then in the _validate() run clamav over newly uploaded files.
Comment #2
gordon commentedComment #3
m3avrck commentedWould love to see this as well :)
Comment #4
javanaut commentedI know that Robert Douglas was working on an upload API (not filestore2, but drupal's built-in upload functionality). It has a validation hook that would allow such a feature to exist. The API docs are here: http://drupaldocs.org/api/head/function/upload_nodeapi
Comment #5
mgiffordThis still seems to be one of the most relevant threads about this subject, so just to say that this is the correct link for above:
http://api.drupal.org/api/function/upload_nodeapi/6
Looks like you'd need to add to the $validators array in the upload.module that passes values to includes/file.inc's file_save_upload() function and probably write a file_validate_virus_free() function to call clamav from the command line.
Anyways, there is a bit of interest in this idea (but it is also old now)
http://drupal.org/node/82226
http://drupal.org/node/82019
Mike
Comment #7
bluegeek9 commentedThank you for your contributions to this issue. As Drupal 4 has reached its End of Life and is no longer supported, we are closing this issue. We encourage you to upgrade to a supported version of Drupal.