Fix upload bug where root was being configured wrong in Class.Upload.php