Increase max file upload over 100MB

redpill

New Member
What's the official proper way to increase the maximum to over 100MB now? I have lists that are about 180MB each...

PS: Mailwizz is awesome, migrating from Sendy and other saas...
 
What's the official proper way to increase the maximum to over 100MB now? I have lists that are about 180MB each...

PS: Mailwizz is awesome, migrating from Sendy and other saas...
You can do this with hooks: create a file app/init-custom.php and add this code:

PHP:
<?php
hooks()->addFilter('get_upload_allowed_max_file_size_options', function ($options) {
    // Add additional file size options
    // This is 200Mb
    $options[1024 * 1024 * 200] = t('settings', '{n} Megabyte|{n} Megabytes', 200);
    // This is 300Mb
    $options[1024 * 1024 * 300] = t('settings', '{n} Megabyte|{n} Megabytes', 300);

    return $options;
});

You can add how many values you want.
 
I tried to set 200Mb and the files are less than 180, getting 500 error =(

already have these settings for php.ini, what else can I set?

allow_url_fopen = Off
display_errors = Off
enable_dl = Off
file_uploads = On
max_execution_time = 0
max_input_time = 0
max_input_vars = 2000
memory_limit = 4096M
post_max_size = 2048M
session.gc_maxlifetime = 2440
session.save_path = "/var/cpanel/php/sessions/ea-php81"
upload_max_filesize = 2048M
zlib.output_compression = Off
 
Did you check in backend > misc > phpinfo, does it show these values you're showing here, for upload size, post size and memory limit?
yes, it's in my reseller VPS cpanel on inmotion, under MultiPHP INI Editor

had sendy importing same lists too, so pretty sure the server can handle it
 
Back
Top