Created
December 2, 2015 11:55
-
-
Save rossriley/9b0eb7b82203838b5c9e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ($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