Does the upload finish and then error? Or does the error occur before it is complete? Does it hang, or get to an error page eventually?
That error usually occurs because the client code isn't able to properly connect to the server, or you're trying to upload a file that is too large.