[clamav-users] Stream scanning

Matus UHLAR - fantomas uhlar at fantomas.sk
Tue Jan 12 07:48:18 EST 2016


On 12.01.16 12:14, Istvan Szabo wrote:
>Is it possible to  handle somehow this request with clamav?
>
>
>1.
>User uploads file to web site
>2.
>File is loaded into memory (byte stream)
>3.
>File byte stream is sent to ClamAV for scanning
>4.
>ClamAV returns OK or VIRUS
>5.
>If OK, store file in the database, if VIRUS, return error to user
>
>I'd imagine to scan the file ClamAV will need to write the byte stream into a temporary file which then gets deleted after the scan.

the file is already stored as file on web server, there's no need for
messing with it. clamd can scan it there, it just neede proper permissions
for reading uploaded files.
-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Fighting for peace is like fucking for virginity...



More information about the clamav-users mailing list