Skip to content

Instantly share code, notes, and snippets.

@rossriley
Created January 26, 2018 10:06
Show Gist options
  • Save rossriley/3fc4adc8a4668f371612d31b758d1417 to your computer and use it in GitHub Desktop.
Save rossriley/3fc4adc8a4668f371612d31b758d1417 to your computer and use it in GitHub Desktop.
Overwrite default filesize for Bolt Uploads
$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