refactor the upload
Merge branch 'master' of github.com:2014-2/001
refactor the code.