Added and fixed upload.

Added and fixed upload.