# Check File Uploads for Viruses

**URL:** <https://www.ruby-forum.com/t/check-file-uploads-for-viruses/120383>\
**Category:** Rails\
**Created:** [November 16, 2007, 11:58am UTC](https://www.ruby-forum.com/t/check-file-uploads-for-viruses/120383 "2007-11-16T11:58:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TTDaVeTT](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/91b2a8/32.png) [@TTDaVeTT](https://www.ruby-forum.com/u/TTDaVeTT)\
**Post date:** [November 16, 2007, 11:58am UTC](https://www.ruby-forum.com/t/check-file-uploads-for-viruses/120383/1 "2007-11-16T11:58:16Z")

</div>

I am currently developing a social networking site using RoR that uses  
the attachment\_fu plugin to handle image uploads. I also want to  
enable users to upload photoshop files, but am worried about security  
vulnerabilities because I want other users to be able to download  
these photoshop files. What is to stop someone from uploading a  
malicious file (i.e. virus) just by changing the extension? I don’t  
want someone downloading a file with a virus on it from my site. Is  
there any way to screen files for viruses when they are uploaded in  
RoR? Any thoughts? Thanks.

---

<div class="post-metadata">

**Author:** ![TTDaVeTT](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/91b2a8/32.png) [@TTDaVeTT](https://www.ruby-forum.com/u/TTDaVeTT)\
**Post date:** [November 16, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/check-file-uploads-for-viruses/120383/2 "2007-11-16T15:51:47Z")

</div>

TTDaVeTT wrote:

> I don’t  
> want someone downloading a file with a virus on it from my site. Is  
> there any way to screen files for viruses when they are uploaded in  
> RoR? Any thoughts? Thanks.

Have you considered using ClamAv?
