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