I have a Craft 3 site deployed to a Digital Ocean droplet via Laravel Forge. I have the maxUploadFileSize
set to 256B (268435456
in bytes) in my config/general.php
like so:
<?php
return [
// Global settings
'*' => [
'omitScriptNameInUrls' => true,
'securityKey' => getenv('SECURITY_KEY'),
'maxUploadFileSize'=> 268435456,
'useProjectConfigFile' => true,
'defaultSearchTermOptions' => array(
'subLeft' => true,
'subRight' => true,
),
],
'dev' => [
'devMode' => true,
'rememberedUserSessionDuration' => 'P1Y',
'userSessionDuration' => 'P1Y',
],
'production' => [
'allowAdminChanges' => false,
],
];
When I go to upload a file larger than 8mb I get this error:
The file “.mp3” could not be uploaded, because it exceeds the maximum upload size of 8.0 MB.
My php.ini
has upload_max_filesize
set to 256M
. I can't figure out what exactly is blocking uploads. Nothing in my .env
file or my nginx.conf
appears to be hindering the upload size.
Any help you can provide would be greatly appreciated!
client_max_body_size
is set to256M
in mynginx.conf
file in Laravel Forge.