Corrected syntax errors.
Implementing upload task behavior.