Skip to content

Instantly share code, notes, and snippets.

View MarkRedeman's full-sized avatar

Mark Redeman MarkRedeman

View GitHub Profile
<?php
/*
|--------------------------------------------------------------------------
| Max Upload File Size filter
|--------------------------------------------------------------------------
|
| Check if a user uploaded a file larger than the max size limit.
| This filter is used when we also use a CSRF filter and don't want
| to get a TokenMismatchException due to $_POST and $_GET being cleared.