I know it may sound stupid, but did you take into account the conversion from bits to bytes, i.e: 1MB = 1024bits? The file your tried to upload is probably bigger than the max size allowed. That's what came on top of my head when reading your message.