Update UploadManager.php