MyBB Community Forums

Full Version: problems with big attachments
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello i have two questions/problems.
1)
as i set up a new mybb for some friends of mine they wanted to use the attachement to attach some bigger files, around 10-15MB. That is no problem for me and my server but it seems to be a problem for mybb because every time i post a file greater than about 2MB i get no error but neither the attachment does not show up in the post nor it is uploaded in the folder on my server. the attachment type and boundaries are set correct and even disabled for admins but that did not work either.
could the problem be, that the upload script would have to run longer than my php.ini allows scripts to run?

2)
is it possible to disable .gif for avatars? i do not want my users to have moving images as avatars, just plain still ones...
1) Whats the value of upload_max_filesize ? ( ACP - Maintenance - View PHP Info )

2) No; only with a codechange.

Open ./inc/functions_upload.php

Find
	// Check we have a valid extension
	$ext = get_extension(strtolower($avatar['name']));
	if(!preg_match("#(gif|jpg|jpeg|jpe|bmp|png)$#i", $ext)) {
		$ret['error'] = $lang->error_avatartype;
		return $ret;
	}

And remove gif from that list.