An error has occured when uploading

I get this message everytime I finish upload a file and it doesn't upload it at all:
An error has occured.
Unknown error. Please contact the webmaster.
An error has occured.
Unknown error. Please contact the webmaster.