Problem about attachment file size

I set max attachment size to 40MB(40960). When upload 18MB file, It shows “Sorry, that file is too big(maximum size is 40MB).”

Does anybody know what happened? what can I do to fix it?