If clamd is running on the system, it would automatically monitor the 
directory? Or how can I set to continuously monitor that directory and do the 
steps that needed?

So based on your suggestion the 2nd step would be the last step and in the 2nd 
step would scan clamd the files, but how would it monitor and how would it 
report? I created a script for a daily scan but it is just a scan not a real 
time monitoring.
________________________________________
From: clamav-users <clamav-users-boun...@lists.clamav.net> on behalf of Matus 
UHLAR - fantomas <uh...@fantomas.sk>
Sent: Tuesday, January 12, 2016 12:48 PM
To: clamav-users@lists.clamav.net
Subject: Re: [clamav-users] Stream scanning

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, uh...@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...
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

This communication and any attachments transmitted with it is intended only for 
the stated addressee(s) and may be confidential. Any unauthorised disclosure, 
use or dissemination, either whole or in part is prohibited. If you have 
received this email in error, please notify the SFW IT Support team immediately 
at supp...@sfwltd.co.uk and delete, erase or otherwise destroy this email. 
Opinions expressed in this email are those of the author and do not necessarily 
reflect the opinions of SFW Ltd or SFW India Pvt Ltd.

SFW Ltd. Registered Office: Southern House, Station Approach, Woking, Surrey, 
GU22 7UY Registered in England No: 2740301 VAT No. 591 7842 02

_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to