Fix uploadDir and autoDelete