fixes in upload module
Merge remote-tracking branch 'origin/master'