Created
January 26, 2018 10:06
-
-
Save rossriley/3fc4adc8a4668f371612d31b758d1417 to your computer and use it in GitHub Desktop.
Overwrite default filesize for Bolt Uploads
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$app['upload'] = $app->share( | |
$app->extend( | |
'upload', | |
function ($uploadHandler) { | |
$uploadHandler->addRule('size', ['max' => '2M']) | |
return $uploadHandler; | |
} | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment