{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/8203","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/8203/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/8203/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/8203/events","html_url":"https://github.com/laravel/framework/issues/8203","id":64908524,"number":8203,"title":"[5.1] [5.2] Required file rules dont work when file size greater than max_file_upload size","user":{"login":"TheShiftExchange","id":1210658,"avatar_url":"https://avatars.githubusercontent.com/u/1210658?v=3","gravatar_id":"","url":"https://api.github.com/users/TheShiftExchange","html_url":"https://github.com/TheShiftExchange","followers_url":"https://api.github.com/users/TheShiftExchange/followers","following_url":"https://api.github.com/users/TheShiftExchange/following{/other_user}","gists_url":"https://api.github.com/users/TheShiftExchange/gists{/gist_id}","starred_url":"https://api.github.com/users/TheShiftExchange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheShiftExchange/subscriptions","organizations_url":"https://api.github.com/users/TheShiftExchange/orgs","repos_url":"https://api.github.com/users/TheShiftExchange/repos","events_url":"https://api.github.com/users/TheShiftExchange/events{/privacy}","received_events_url":"https://api.github.com/users/TheShiftExchange/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/laravel/framework/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2015-03-28T06:25:57Z","updated_at":"2016-10-07T12:44:30Z","closed_at":"2016-09-07T08:14:08Z","body":"This issue has come up before: https://github.com/laravel/framework/issues/4467 & https://github.com/laravel/framework/issues/4226\r\n\r\n@GrahamCampbell said in #4467 that there is an existing pull that deals with this - but it is not fixed - it is still broken - and I cant find any PR that seems to deal with this?\r\n\r\nThe problem is simple:\r\n\r\n1. Upload file greater than `max_file_upload` (but less than `post_max_size`)\r\n2. PHP will send the request to Laravel, but has cleared the `file` because it is larger than `max_file_upload`\r\n3. Laravel does a `required` check - sees the file is not there, and reports \"The file is required\".\r\n\r\nObvious this is very confusing to users - because they did attach a file - but the website is telling them they didnt.\r\n\r\nThe general solution would be to add a simple check to see if there is an error on the `$_FILES` global - which would indicate there was a file attached. But then you run into a new problem - if the file is `required`, but it is not actually there - then you cant let `required` pass - it **must** fail.\r\n\r\nSo I think the solution is to return a custom message for file validations - with some checks as to why the `required` failed?\r\n\r\nI'm happy to do the PR myself - but I'm looking for some guidance/direction on how we can solve this problem..."},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/252242656","html_url":"https://github.com/laravel/framework/issues/8203#issuecomment-252242656","issue_url":"https://api.github.com/repos/laravel/framework/issues/8203","id":252242656,"user":{"login":"vigneshmuthukrishnan","id":21100578,"avatar_url":"https://avatars.githubusercontent.com/u/21100578?v=3","gravatar_id":"","url":"https://api.github.com/users/vigneshmuthukrishnan","html_url":"https://github.com/vigneshmuthukrishnan","followers_url":"https://api.github.com/users/vigneshmuthukrishnan/followers","following_url":"https://api.github.com/users/vigneshmuthukrishnan/following{/other_user}","gists_url":"https://api.github.com/users/vigneshmuthukrishnan/gists{/gist_id}","starred_url":"https://api.github.com/users/vigneshmuthukrishnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vigneshmuthukrishnan/subscriptions","organizations_url":"https://api.github.com/users/vigneshmuthukrishnan/orgs","repos_url":"https://api.github.com/users/vigneshmuthukrishnan/repos","events_url":"https://api.github.com/users/vigneshmuthukrishnan/events{/privacy}","received_events_url":"https://api.github.com/users/vigneshmuthukrishnan/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T12:44:30Z","updated_at":"2016-10-07T12:44:30Z","body":"Hi @znck   Now i change php.in 'upload_max_filesize'  and  'post_max_size'\r\nBut Now I have new Error \r\n\r\nThe localhost page isn’t working\r\n\r\nlocalhost is currently unable to handle this request.\r\nHTTP ERROR 500 \r\n"}}
{"actor":{"display_login":"vigneshmuthukrishnan"}}