PDA

View Full Version : Queue Attachment when it's over max size...


Tim Wheatley
03-20-2002, 05:11 PM
I have a max attachment size of 1MB for my board, but occasionally someone wants to upload bigger stuff, and have to e-mail it to me to upload by ftp for download, which also means I get no 'live' download counts like I do through VB...

So is it possible to queue attachments over 1MB until I pass or refuse them?

Admin
03-20-2002, 05:46 PM
Ok, first of all make your attachment limit higher, let's say 5MB. Now edit functions.php and replace this line:
$visible = iif($moderate,0,1);
with this:
$visible = iif($moderate or $filesize>1048576,0,1);
1048576 = 1MB. You can change it if you want.
Now every attachment bigger than 1MB will go into moderation, and attachments bigger than 5MB won't be accepted. :)

Aaow AnD wHiTe
03-20-2002, 10:19 PM
Hey Chen, thx :) This will be really useful. BTW, could you please tale a look @ this thread (https://vborg.vbsupport.ru/showthread.php?s=&threadid=36366)? Sure you know how to do it ;)

Tim Wheatley
03-21-2002, 07:38 PM
wow - thanks! :D