File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Scanning while uploading documents Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Scanning while uploading documents" Watch "Scanning while uploading documents" New topic

Scanning while uploading documents


Joined: Dec 21, 2001
Posts: 1
Hi ,
How to make sure the document being uploaded to my server doesnt have any virus.
I dont want the users to put some documents with virus into my server.
Some one please reply
We are and We are Not

We are and We are Not
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

Upload the files into a quarantine area. Purchase a virus scanning program that is designed to work with servers (Mostly this means that you should be able to name a file and it will check it, rather than scanning the entire machine every time).
When a file comes into the quarantine area, scan it, then (assuming it passes), move it to its final destination.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Scanning while uploading documents
jQuery in Action, 3rd edition