Recoding the upload class.