{"action":"created","issue":{"url":"https://api.github.com/repos/CodeSleeve/laravel-stapler/issues/28","labels_url":"https://api.github.com/repos/CodeSleeve/laravel-stapler/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/CodeSleeve/laravel-stapler/issues/28/comments","events_url":"https://api.github.com/repos/CodeSleeve/laravel-stapler/issues/28/events","html_url":"https://github.com/CodeSleeve/laravel-stapler/issues/28","id":42674318,"number":28,"title":"Catching FileException errors","user":{"login":"dambridge","id":203355,"avatar_url":"https://avatars.githubusercontent.com/u/203355?v=3","gravatar_id":"","url":"https://api.github.com/users/dambridge","html_url":"https://github.com/dambridge","followers_url":"https://api.github.com/users/dambridge/followers","following_url":"https://api.github.com/users/dambridge/following{/other_user}","gists_url":"https://api.github.com/users/dambridge/gists{/gist_id}","starred_url":"https://api.github.com/users/dambridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dambridge/subscriptions","organizations_url":"https://api.github.com/users/dambridge/orgs","repos_url":"https://api.github.com/users/dambridge/repos","events_url":"https://api.github.com/users/dambridge/events{/privacy}","received_events_url":"https://api.github.com/users/dambridge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-09-12T21:52:59Z","updated_at":"2015-02-04T06:54:33Z","closed_at":null,"body":"The file \"2EE20CEF-D1EB-43BB-9115-69162E716A83.jpg\" exceeds your upload_max_filesize ini directive.\r\n\r\nI'd like to validate against filesizes before the upload begins, as well as catching errors such as the above. Thus far have been unable to do so. Any suggestions?"},"comment":{"url":"https://api.github.com/repos/CodeSleeve/laravel-stapler/issues/comments/72799893","html_url":"https://github.com/CodeSleeve/laravel-stapler/issues/28#issuecomment-72799893","issue_url":"https://api.github.com/repos/CodeSleeve/laravel-stapler/issues/28","id":72799893,"user":{"login":"tabennett","id":2191397,"avatar_url":"https://avatars.githubusercontent.com/u/2191397?v=3","gravatar_id":"","url":"https://api.github.com/users/tabennett","html_url":"https://github.com/tabennett","followers_url":"https://api.github.com/users/tabennett/followers","following_url":"https://api.github.com/users/tabennett/following{/other_user}","gists_url":"https://api.github.com/users/tabennett/gists{/gist_id}","starred_url":"https://api.github.com/users/tabennett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tabennett/subscriptions","organizations_url":"https://api.github.com/users/tabennett/orgs","repos_url":"https://api.github.com/users/tabennett/repos","events_url":"https://api.github.com/users/tabennett/events{/privacy}","received_events_url":"https://api.github.com/users/tabennett/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T06:54:33Z","updated_at":"2015-02-04T06:54:33Z","body":"There are currently no built in methods (in this package) to validate file upload size.  You can (and probably should) validate the file upload size using Laravel's built in validation methods before you ever assign the uploaded file to your model attribute.  I've used the [size](http://laravel.com/docs/4.2/validation#rule-size) validation method in the past.  Hope this helps."}}