mod to function removeUpload