Fix checkInputs error in media upload.