Web form attachment size issue

Web form Max Attachment Size (in MB) not working.
I set 5MB but when I upload image then it is allow more than 5MB size.