How to check for virus signatures on uploaded files in ruby on server side before processing?

716 Views Asked by At

There is a upload feature on the site. I want to check if the file is infected before it gets processed. Is there any way to achieve this using a gem or having some inhouse code for it?

1

There are 1 best solutions below

2
On BEST ANSWER

You can try Clamby: https://github.com/kobaltz/clamby

After setup you can use the Clamby.safe?(path) command to check files.

(I also use it to check uploaded files)