What is the upload limit in GB? If I try to upload a movie that is larger than 3 GB, I get this error message.
I have no problem uploading larger movies to WoltLab Gallery.
What is the upload limit in GB? If I try to upload a movie that is larger than 3 GB, I get this error message.
I have no problem uploading larger movies to WoltLab Gallery.
Hello,
Theoretically, there should no longer be a real upload limit. Since the files are uploaded via chunks.
Can you try to upload the file again, according to the error message, something incorrect was uploaded.
It would be interesting to know how large post_max_size is and whether the progress bar moves during the upload. From this it can be deduced whether the problem occurs with a chunk or with the finished file.
Does a progress bar appear and does it move during the upload?
I can see the loading circle on the left, but normally a progress bar appears directly under the file name.
Or does the error message appear before there is a progress bar?
Please lower the PHP limits. The problem is that it tries to pack the complete file into the POST body and not to split the file into smaller packages.
It is best to set the limits to a maximum of a few hundred MB.
Otherwise, it should be a problem that you can no longer upload files to the WoltLab Gallery. Please check the server error logs, further information should be available there. Probably a limit is reached by the web server (not PHP).
Does a progress bar appear and does it move during the upload?
I can see the loading circle on the left, but normally a progress bar appears directly under the file name.
Or does the error message appear before there is a progress bar?
As you can see in the picture, here I have 2 progress bars that move during the upload.
Please lower the PHP limits. The problem is that it tries to pack the complete file into the POST body and not to split the file into smaller packages.
It is best to set the limits to a maximum of a few hundred MB.Otherwise, it should be a problem that you can no longer upload files to the WoltLab Gallery. Please check the server error logs, further information should be available there. Probably a limit is reached by the web server (not PHP).
As long as I can upload 3.29MB movies to the woltLab Gallery on the forum, I don't have any server problems, I have a private server.
You can try editing the file wcf/lib/system/file/processor/FileProcessor.class.php, this might fix the problem.
wcf is the directory of the core, this can also be simply lib/system/file/processor/FileProcessor.class.php directly in your installation.
public function getOptimalChunkSize(): int
{
$postMaxSize = \ini_parse_quantity(\ini_get('post_max_size'));
if ($postMaxSize === 0) {
// Disabling it is fishy, assume a more reasonable limit of 100 MB.
$postMaxSize = 100_000_000;
}
return \min(100_000_000, $postMaxSize);
}
Seit 2013 entwickeln wir Plugins für die WoltLab Suite. Eines der bekanntesten Plugins von uns ist das News-System.