Fixed stuff with registering Upload as a job. Handled cases of malformed json input and submitting empty files