5

How can I check files before uploading to Amazon S3,any tips?

Updated: It need for my web-site when users upload a file i want to check whether it's not infected. Is there any API which allows for check files programmatically ?


Thanks in advance!!!

Jama A.
  • 15,680
  • 10
  • 55
  • 88

3 Answers3

3

If you mean manually: try the online virusscanner at http://www.virustotal.com/ - It checks against a lot of antivirus programs for you.

mrbellek
  • 2,300
  • 16
  • 20
2

I think the best solution is @Joe's answer to a similar question for c#:

I would probably just make a system call to run an independent process to do the scan. There are a number of command-line AV engines out there from various vendors.

Community
  • 1
  • 1
Geoff Appleford
  • 18,538
  • 4
  • 62
  • 85
  • just for google: one of the best command line free anti-viruses is clamAV multi platform so you can work with any OS, and use Any programming lang that can execute system applications, php, java, c# most high level programming langs – Barkermn01 Sep 24 '12 at 20:15
1

You might want to check out https://scanii.com - it's an API for malware detection with pre-built clients in many languages that integrates with S3 directly (and without code changes if you are using AWS lambda) - I work on scanii so this is a bit of self promotion :)

As an added bonus, scanii can detect a lot more than just malware such as NSFW images and language.

Rafael Ferreira
  • 1,260
  • 8
  • 11