Added the actual upload functionality to uploader