Skip to content

Instantly share code, notes, and snippets.

@rossriley
Created December 2, 2015 11:55
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rossriley/9b0eb7b82203838b5c9e to your computer and use it in GitHub Desktop.
Save rossriley/9b0eb7b82203838b5c9e to your computer and use it in GitHub Desktop.
$app['upload'] = $app->share(
$app->extend(
'upload',
function ($upload, $app) {
$upload->setSanitizerCallback(
function ($filename) use () {
// do custom sanitising here...
}
);
return $upload;
}
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment