I'm adjusting the maxUploadFileSize in Craft, to 50MB.
In following the post below, I made several adjustments to both: php.ini and craft/config/general.php.
https://stackoverflow.com/questions/3263480/upload-max-size-in-php
First, I adjusted settings in php.ini:
upload_max_filesize
post_max_size
In general.php (craft/config), the following was already set:
define('URI_SCHEME', ( isset($_SERVER['HTTPS'] ) ) ? "https://" : "http://" );
define('SITE_URL', URI_SCHEME . $_SERVER['SERVER_NAME'] . '/');
define('BASEPATH', realpath(CRAFT_BASE_PATH . '/../') . '/');
return array(
'*' => array(
'environmentVariables' => array(
'omitScriptNameInUrls' => true,
'siteUrl' => SITE_URL,
'basePath' => BASEPATH,
'maxUploadFileSize' => 62914560,
),
),
'dev' => array(
'devMode' => true,
)
);
I know that that is around 62MB, but I keep receiving an error message saying that there is a 16MB limit on files. All other files great than 2MB and less than 16MB now are upload-able.
Can anyone make a suggestion as to why the standard CraftCMS default of 16MB is now in place?
Thanks for any leads
maxUploadFileSize
setting being applied to your current environment?upload_max_filesize
. Does it say50M
?client_max_body_size 0;
to set it to "no limit" github.com/nystudio107/nginx-craft/blob/master/sites-available/…