ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
scanning the uploading file from browser
sudarshan


Joined: 07 Jul 2006
Posts: 4
Reply with quote
Hi,
I would like scan a file which I am uploading from the browser. Could anybody provide us the instructions/steps to do this please...

Regards,
Sudarshan
View user's profileSend private message
Monotype


Joined: 30 Apr 2006
Posts: 62
Reply with quote
What do you mean..?

Do you want to scan a file by uploading it to a site which scans it for viruses?

Then you could use http://www.virustotal.com/

Just press the "Browse"-button and choose your file. Press "Open" and then the "Send"-button.

Did you mean that or did you mean that you are a webmaster and want to be able to scan all the files which users uploads to your site by a uploadform? Or did you mean anything else?
View user's profileSend private message
GuitarBob


Joined: 09 Jul 2006
Posts: 4513
Location: USA
Reply with quote
If you have configured ClamWin to integrate with Windows Explorer, just right click on the file and then select the option to scan with ClamWin before you send it.

Regards,
View user's profileSend private message
Regarding scanning the file updoading to my website
sudarshan


Joined: 07 Jul 2006
Posts: 4
Reply with quote
Hi,

Thanks for the information provided. Actually I need to upload the file from browser to my web site and would like store in a file server location. So before storing in my server I need to check for virus. For this I need to scan the file which will be uploaded by the user in our website from browser.

Any inputs on this appreciated...


Thanks,
Sudarshan
View user's profileSend private message
sudarshan


Joined: 07 Jul 2006
Posts: 4
Reply with quote
Hi,
Actually I am a webmaster and want to be able to scan all the files which users uploads to my site by a uploadform. This they will be doing from browser.

Thanks,
Sudarshan
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 1751
Reply with quote
you can do that by various means (php, perl, etc).
View user's profileSend private message
Monotype


Joined: 30 Apr 2006
Posts: 62
Reply with quote
sudarshan wrote:
Hi,
Actually I am a webmaster and want to be able to scan all the files which users uploads to my site by a uploadform. This they will be doing from browser.

Thanks,
Sudarshan


In PHP, you can do like this:

http://www.freefilehosting.org/public/13545/code.txt

I'm uploading it to FreeFilehosting.org because phpBB won't let me post it here.

( Forbidden. You don't have permission to access /posting.php on this server. )


That should work.

If you have a webhost that haven't ClamWin installed, you can always copy your clamscan.exe and libclamav.dll - together with the database files - to your website folder. They only use about 400 kB space.

You don't need to echo the command out like in my example, of course, thats up to you what you want to do with it. By adding the parameter --remove you can get clamscan to remove the file automatically if you prefer that.
View user's profileSend private message
sudarshan


Joined: 07 Jul 2006
Posts: 4
Reply with quote
Thanks for the code sample in PHP. Can you please send me the code sample to execute the similar kind of function in Java/JSP. As we are doing the fileupload process by using JSP. We need to check for the virus for upploading file( by using Browse field option) by using the clam antivirus tool. So we need to call the Clam execution command in JSP page to do the virus checking before uploading the file....

Thanks in advance...

Sudarshan
View user's profileSend private message
scanning the uploading file from browser
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic