fixed compiling issues in uploadOne