![]() |
Zip Attachments
This extension allows your users to decide if they want an attachment to be zipped up upon upload. The file(s) are zipped before VB checks the size limit. It always annoyed me when I have to post a text document and it is too big for that extension setting. Zipping a text file greatly reduces the size.
This extension should also save space in your attachments database as all new files will be compressed with the zip method. Installation is simple: 1. Upload the zip.lib.php file to your forums directory. 2. Upload the xml file as a plugin. 3. Tiny edit to template newattachment. 4. Click Install I will support here as I have time. This modification is FREE of charge, but if you wish to reward me for my work, and encourage future modifications by me, please donate below: https://vborg.vbsupport.ru/external/2010/02/12.gif |
cooool
|
Actually, sorry, uploaded the incomplete xml file, please redownload..
|
This also beats adding a load of additional attachment extensions manually. Although of course, this could also potentially be a huge security risk.. No more so than .zip files being allowed in the first place though!
|
Does just what it says on the tin...
/me clicks install |
Quote:
|
Quote:
|
Hello,
A risk would be a member uploading an executable file type in zip format. When opened, all hell could break loose on unsuspecting users. I personally have .zip files as an attachment type that is not allowed for this very reason. I think the concept of this modification is great for users that already allow the .zip extension as a valid upload type. I am not sure if it is possible, but it would be great if there were a way to have uploaded zip files scanned for viruses in the same manner that varying email apps do. I know this is probably very difficult to do, but it would be very nice. lol |
Actually I am working on that right now.. This thread gave me the idea. I do it for another application of mine, I am sure I can fit it in pretty quick.
|
Maybe just add a template modification in the attachments section with like a warning reminding users to always scan zip files before opening?
|
Yeah this is nice!
|
love it ******INSTALLED**********
|
Nice!
|
Quote:
I think that OK was saying was that .zip files in general can be a security risk. Just as when you get a virus e-mail with a .zip file in it and the recipient thinks, "what is in the .zip file". They open it and hey presto a virus leaps out at them. |
Where did you get this version of zip.lib.php from?
|
Quote:
|
Quote:
|
Based on what I am reading in this thread, my assumption is that this hack does not actually look at the file types being uploaded prior to zipping them up into an archive? Even if this is true it's still a great hack.
I still think some overview of general .zip security considerations may be in order, even if this particular hack doesn't fundamentally alter anything. |
Quote:
If you already allow the zip extension, then this extension is for you, otherwise, wait until I release the version that scans files for virii.. |
Quote:
|
Quote:
accually thanks very much for taking the time to make something like this :D |
Do I get this right, this plugin just zips all files no matter if the user is even allowed to upload this filetype?
So when he uploads a pdf which I forbid he doesn't get an error message and the file gets uploaded? |
Quote:
|
The problem could be easily fixed by performing ZIP [AFTER] the vB file checks, rather than within it. :)
|
Quote:
|
If you want to scan files for viruses before they are zipped up, you may be able to use this extension I wrote:
https://vborg.vbsupport.ru/showthread.php?p=824668 |
any update for 3.6.8
|
All times are GMT. The time now is 04:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|