I'm trying to find a way for MyBB to allow my users to upload any attachment types. Since we've got a few programmers, gamers & such on here the upkeep on a attachment type list is inconvenient. Is there a way to allow anything to be uploaded?
Not without a modification. I think the easiest way for you is to allow "zip" files, and just have your users zip up whatever they want to attach, and attach the .zip.
I haven't tried this, but if you're looking for a modification, you can try:
In inc/functions_upload.php, find:
if(!$attachtype['atid'])
{
$ret['error'] = $lang->error_attachtype;
return $ret;
}
Replace with:
if(!$attachtype['atid'])
{
$attachtype = array('maxsize' => 1024); // put your maximum size for attachment types not specified in the AdminCP (size is in KB; use 0 to refer to no maximum size)
}
Thanks, I'll probably ask my users to zip items up for now. We'll take a shot at editing the file later.