Fixed uninitialized member
Merge pull request #2522 from Atlante45/upload_fixes

Fixed uninitialized member