Greetings,
Is 2 GB the max file size allowed by MyBB's filesize function?
The developer said
I think the 2gb error is coming because myBB's filesize function cannot handle large sizes.
Not only that but its based on the max filesize of your host.
2GB? That can choke at so many points. Your ISP, the host, the php script. Realistically a 2GB file is immense and you may need to make serious adjustments somewhere for them to work.
Do you get any error messages? What exactly happens?
"MyBB's filesize function". Forgive me for ignorance, but I thought MyBB used filesize(), which is actually PHP. The only thing MyBB has is a get_friendy_size function that formats the number correctly.
Quote:Because PHP's integer type is signed and many platforms use 32bit integers, filesize() may return unexpected results for files which are larger than 2GB. For files between 2GB and 4GB in size this can usually be overcome by using sprintf("%u", filesize($file)).
Source:
PHP: Filesize Function
You'll need to edit the areas of MyBB where filesize() is used with the one PHP recommends. Unless of course, I'm wrong.