Updated the upload class