Fixed reporting of successfull and failed uploads.

TODO:

* fix downloading of files
* fix progressbar