The upload dialog should handle upload errors caused by network connection issues better. Example from IRC:
<BrownFig21> Anybody know what this error means when attempting to upload an img? http://puu.sh/ogVW1/f226fc20a3.png
There's some error code for timeouts as well, which I don't think we handle either.