private int ProcessUploadedFile(string fileName)
    {
        int    idImport      = ApplicationConstants.INT_NULL_VALUE;
        string cleanFileName = ApplicationUtils.GetCleanFileName(fileName);
        string shareFilePath = string.Empty;

        // get the directory from appsettings
        string dirUrl    = ConfigurationManager.AppSettings["UploadFolderRevised"];
        string dirPath   = Server.MapPath(dirUrl);
        string shareName = @"\\" + Server.MachineName + @"\" + dirUrl;

        shareFilePath = shareName + @"\" + cleanFileName;
        ImportRevisedBudget revisedBudgetUpload = new ImportRevisedBudget(SessionManager.GetSessionValueNoRedirect(this.Page, SessionStrings.CONNECTION_MANAGER));

        try
        {
            idImport = revisedBudgetUpload.WriteToRevisedBudgetImportTable(shareFilePath, currentUser.IdAssociate);
            if (idImport > 0)
            {
                RevisedBudgetFileName = filUpload.UploadedFiles[0].FileName;
                btnProcess.Enabled    = true;
                ProcessIdHdn.Value    = idImport.ToString();
                MoveFileToDirectory(TargetDirectoryEnum.DIRECTORY_PROCESSED, shareFilePath);
            }
            return(idImport);
        }
        catch (Exception ex)
        {
            btnProcess.Enabled = false;
            MoveFileToDirectory(TargetDirectoryEnum.DIRECTORY_CANCELLED, shareFilePath);
            throw new IndException(ex);
        }
    }