- fixed uploaded directory name (was "undefined" before)
- fixed empty directory upload progress (size was not calculated for directories)