context_title
context_text
Topic Summary - Displaying 3 post(s). Click here to show all
Posted by: Dandello Posted on: Apr 20th , 2015 at 1:10am
Okay - no idea when this section got messed up
but in Sources/Post.pm find
$limit ||= 0;
if ( $limit > 0 && $filesize > ( 1024 * $limit ) ) {
foreach (@filelist) { unlink "$uploaddir/$_"; }
}
$dirlimit ||= 0;
if ($dirlimit > 0) {
my $dirsize = dirsize($uploaddir);
if ( $filesize > ( ( 1024 * $dirlimit ) - $dirsize ) ) {
foreach (@filelist) { unlink "$uploaddir/$_"; }
}
}
and replace with
$limit ||= 0;
if ( $limit > 0 && $filesize > ( 1024 * $limit ) ) {
foreach (@filelist) { unlink "$uploaddir/$_"; }
fatal_error( q{},
"$fatxt{'21'} $fixfile ("
. int( $filesize / 1024 )
. " KB) $fatxt{'21b'} "
. $limit );
}
$dirlimit ||= 0;
if ( $dirlimit > 0 ) {
my $dirsize = dirsize($uploaddir);
if ( $filesize > ( ( 1024 * $dirlimit ) - $dirsize ) ) {
foreach (@filelist) { unlink "$uploaddir/$_"; }
fatal_error(
q{},
"$fatxt{'22'} $fixfile ("
. (
int( $filesize / 1024 ) -
$dirlimit +
int( $dirsize / 1024 )
)
. " KB) $fatxt{'22b'}"
);
}
}
I assume we were going to move the error sections into a separate sub.
Posted by: Dandello Posted on: Apr 18th , 2015 at 3:14pm
On further testing - file upload limits on PM attachments appears to work properly.
Posted by: Dandello Posted on: Apr 18th , 2015 at 3:03pm
There appears to be a problem with attachment upload size limits being ignored in 2.6.11. With YaBBForum limits are checked on some file types and not on others. Here, all the file types I've checked have their sizes ignored. (Here, it may be due to a mod or some other change.) The upload size limits work in 2.5.2 (although on testing I noticed some weirdness with how the error notice showed up). I'll be doing more testing next week.
Forum Jump »
Board Index
» 10 most recent Posts
» 10 most recent Topics
News and Updates
YaBB News
General Category
General Board
Test Zone
- Test Sub
- Test sub 2
Showcase
Archived Development Forums
- http://www.yabb26.yabbforumsoftware.com/
YaBB Development
HTML5 and CSS
SQL - yes, we're heading there
New Features
Documentation
On the Road to 2.7
Lounge
Talk it Up
The Comedy Club
Support
Security Announcements
YaBB 2.6.0 and 2.6.1 Support
Other Places
- http://www.yabbforum.com/
- https://www.facebook.com/YaBBForum/
- http://yabbmain.yabbforumsoftware.com/cgi-bin/community/YaBB.pl
Converting to other software
Mod Spot
Mods Wanted (Old Mods)
Mods Wanted (New Mods)
2.6.1 Mods
2.6.0 Mods
- http://www.xonder.com/cgi-bin/yabb26/YaBB.pl
- http://boardmod.de
- http://www.boardmod.org/cgi-bin/forum/YaBB.pl
- http://boardmod26.yabbforumsoftware.com/cgi-bin/yabb2/YaBB.pl
2.5.2 Mods
2.7.00 Mods
- http://yabbforumsoftware.com/cgi-bin/modlang/modlang.pl
Templates for 2.7
Helps
YaBB Administration
Language Packs (2.6)
- Suomi
- Русский
- Deutsch
Language Packs (2.7)
http://yabbforumsoftware.com/cgi-bin/langfix/complang.pl
Bug Zone
YaBB Bugs ««
YaBB 2.7 Issues