Error 500 is the standard HTTP error code chucked back by a web server (the one you are uploading to). It isnt anything you have done, its an issue on the web server itself.
Best you can do is mail the admin of the server / site and they can then check the server logs and find out why its occuring.
There is nothing you can do to fix it, its server side.