updated upload manager to remove spaces