emit "uploaded" on fileObj when the upload finishes