Carrotware.CMS.UI.Admin.c3_admin.FileBrowser.btnUpload_Click C# (CSharp) Method

btnUpload_Click() protected method

protected btnUpload_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        protected void btnUpload_Click(object sender, EventArgs e)
        {
            lblWarning.Text = String.Empty;
            lblWarning.CssClass = String.Empty;
            /*
            try {
                if (upFile.HasFile) {
                    var sPath = SetSitePath(sQueryPath);
                    string uploadedFileName = upFile.FileName;

                    if ((from b in helpFile.BlockedTypes
                         where uploadedFileName.ToLowerInvariant().Contains("." + b.ToLowerInvariant())
                         select b).Count() < 1) {
                        if (chkSpaceEscape.Checked) {
                            uploadedFileName = uploadedFileName.Replace(" ", "-");
                        }

                        upFile.SaveAs(Path.Combine(sPath, uploadedFileName));
                        lblWarning.Text = String.Format("file [{0}] uploaded!", uploadedFileName);
                        lblWarning.CssClass = "uploadSuccess";
                    } else {
                        lblWarning.Text = String.Format("[{0}] is a blocked filetype.", uploadedFileName);
                        lblWarning.CssClass = "uploadBlocked";
                    }

                    LoadLists();
                } else {
                    lblWarning.Text = "No file detected for upload.";
                    lblWarning.CssClass = "uploadNoFile";
                }
            } catch (Exception ex) {
                lblWarning.Text = ex.ToString();
                lblWarning.CssClass = "uploadFail";
            }
            */
        }