Can't upload attachment files

It says that the file attachment limit size is 512kb and the maximum files is 8. However, it only lets me upload 1 and it also gave an error that the file was more than 512kb even though it was less. It did still attach it though. It also gave an error that I was trying to post the same message twice.