Fixed bug of upload constructor
Modified style mentioned in #883 #861
Merge pull request #942 from linzongshu/develop

Modified style mentioned in #883 #861 and fixed bug of upload constructor