{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/13891","labels_url":"https://api.github.com/repos/symfony/symfony/issues/13891/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/13891/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/13891/events","html_url":"https://github.com/symfony/symfony/issues/13891","id":60509235,"number":13891,"title":"[Validator] File maxSize does not work properly?","user":{"login":"ardi-n","id":371675,"avatar_url":"https://avatars.githubusercontent.com/u/371675?v=3","gravatar_id":"","url":"https://api.github.com/users/ardi-n","html_url":"https://github.com/ardi-n","followers_url":"https://api.github.com/users/ardi-n/followers","following_url":"https://api.github.com/users/ardi-n/following{/other_user}","gists_url":"https://api.github.com/users/ardi-n/gists{/gist_id}","starred_url":"https://api.github.com/users/ardi-n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardi-n/subscriptions","organizations_url":"https://api.github.com/users/ardi-n/orgs","repos_url":"https://api.github.com/users/ardi-n/repos","events_url":"https://api.github.com/users/ardi-n/events{/privacy}","received_events_url":"https://api.github.com/users/ardi-n/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-10T14:38:16Z","updated_at":"2015-03-10T15:39:51Z","closed_at":null,"body":"I think it is related to recent change in logic that allows to specify binary format in maxSize.\r\n\r\nI'm using Symfony 2.6.4.\r\n\r\nI've got an image assertion which worked previously. \r\n    \r\n    mimeTypes=\"image/gif\",\r\n    maxSize=\"30M\"\r\n\r\nNow it produces an error:\r\n\r\n> \"The file is too large (23707.88 kB). Allowed maximum size is 0.03 kB.\""},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/78080338","html_url":"https://github.com/symfony/symfony/issues/13891#issuecomment-78080338","issue_url":"https://api.github.com/repos/symfony/symfony/issues/13891","id":78080338,"user":{"login":"xabbuh","id":1957048,"avatar_url":"https://avatars.githubusercontent.com/u/1957048?v=3","gravatar_id":"","url":"https://api.github.com/users/xabbuh","html_url":"https://github.com/xabbuh","followers_url":"https://api.github.com/users/xabbuh/followers","following_url":"https://api.github.com/users/xabbuh/following{/other_user}","gists_url":"https://api.github.com/users/xabbuh/gists{/gist_id}","starred_url":"https://api.github.com/users/xabbuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabbuh/subscriptions","organizations_url":"https://api.github.com/users/xabbuh/orgs","repos_url":"https://api.github.com/users/xabbuh/repos","events_url":"https://api.github.com/users/xabbuh/events{/privacy}","received_events_url":"https://api.github.com/users/xabbuh/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T15:39:51Z","updated_at":"2015-03-10T15:39:51Z","body":"Does it work with *30MB* instead of only *30M*?"}}