upload optimizations

Progressbar calculations performed every second so it's
not so CPU intensive