Control is used for uploading files through the UploadiFive library
상속: System.Web.UI.WebControls.WebControl
        private void add_upload_controls(PlaceHolder UploadFilesPlaceHolder, string FileExtensions, string UploadDirectory, string ServerSideName, bool UploadMultiple, Custom_Tracer Tracer)
        {
            Tracer.Add_Trace("File_Managament_MySobekViewer.add_upload_controls", String.Empty);

            // Ensure the directory exists
            if (!File.Exists(UploadDirectory))
                Directory.CreateDirectory(UploadDirectory);

            StringBuilder filesBuilder = new StringBuilder(2000);

            LiteralControl filesLiteral2 = new LiteralControl(filesBuilder.ToString());
            UploadFilesPlaceHolder.Controls.Add(filesLiteral2);
            filesBuilder.Remove(0, filesBuilder.Length);

            UploadiFiveControl uploadControl = new UploadiFiveControl
            {
                UploadPath = UploadDirectory,
                UploadScript = RequestSpecificValues.Current_Mode.Base_URL + "UploadiFiveFileHandler.ashx",
                AllowedFileExtensions = FileExtensions,
                SubmitWhenQueueCompletes = true,
                RemoveCompleted = true,
                Multi = UploadMultiple,
                ServerSideFileName = ServerSideName
            };
            UploadFilesPlaceHolder.Controls.Add(uploadControl);

            LiteralControl literal1 = new LiteralControl(filesBuilder.ToString());
            UploadFilesPlaceHolder.Controls.Add(literal1);
        }
        private void add_upload_controls(PlaceHolder MainPlaceholder, Custom_Tracer Tracer)
        {
            Tracer.Add_Trace("New_Group_And_Item_MySobekViewer.add_upload_controls", String.Empty);

            StringBuilder filesBuilder = new StringBuilder(2000);
            filesBuilder.AppendLine("<script src=\"" + Static_Resources_Gateway.Sobekcm_Metadata_Js + "\" type=\"text/javascript\"></script>");

            if ((completeTemplate.Upload_Types == CompleteTemplate.Template_Upload_Types.File) || (completeTemplate.Upload_Types == CompleteTemplate.Template_Upload_Types.File_or_URL))
            {
                filesBuilder.AppendLine("Add a new item for this package:");
                filesBuilder.AppendLine("<blockquote>");

                LiteralControl filesLiteral2 = new LiteralControl(filesBuilder.ToString());
                MainPlaceholder.Controls.Add(filesLiteral2);
                filesBuilder.Remove(0, filesBuilder.Length);

                UploadiFiveControl uploadControl = new UploadiFiveControl();
                uploadControl.UploadPath = userInProcessDirectory;
                uploadControl.UploadScript = RequestSpecificValues.Current_Mode.Base_URL + "UploadiFiveFileHandler.ashx";
                uploadControl.AllowedFileExtensions = UI_ApplicationCache_Gateway.Settings.Resources.Upload_Image_Types + "," + UI_ApplicationCache_Gateway.Settings.Resources.Upload_File_Types;
                uploadControl.SubmitWhenQueueCompletes = true;
                uploadControl.RemoveCompleted = true;
                uploadControl.Swf = Static_Resources_Gateway.Uploadify_Swf;
                uploadControl.RevertToFlashVersion = true;
                MainPlaceholder.Controls.Add(uploadControl);

                filesBuilder.AppendLine("</blockquote><br />");
            }

            LiteralControl literal1 = new LiteralControl(filesBuilder.ToString());
            MainPlaceholder.Controls.Add(literal1);
        }
        private void add_upload_controls(string DestinationDirectory, string Extensions, string ButtonText, PlaceHolder UploadFilesPlaceHolder, Custom_Tracer Tracer)
        {
            Tracer.Add_Trace("File_Managament_MySobekViewer.add_upload_controls", String.Empty);

            StringBuilder filesBuilder = new StringBuilder(2000);

            LiteralControl filesLiteral2 = new LiteralControl(filesBuilder.ToString());
            UploadFilesPlaceHolder.Controls.Add(filesLiteral2);
            filesBuilder.Remove(0, filesBuilder.Length);

            UploadiFiveControl uploadControl = new UploadiFiveControl();
            uploadControl.UploadPath = DestinationDirectory;
            uploadControl.UploadScript = RequestSpecificValues.Current_Mode.Base_URL + "UploadiFiveFileHandler.ashx";
            uploadControl.AllowedFileExtensions = Extensions;//.jpg,.png,.gif,.bmp,.jpeg";
            uploadControl.RemoveCompleted = true;
            uploadControl.SubmitWhenQueueCompletes = true;
            uploadControl.Multi = false;
            uploadControl.ButtonText = ButtonText;
            uploadControl.CssClass = "sbkTeiAv_UploadButton";
            UploadFilesPlaceHolder.Controls.Add(uploadControl);

            LiteralControl literal1 = new LiteralControl(filesBuilder.ToString());
            UploadFilesPlaceHolder.Controls.Add(literal1);
        }
        private void add_upload_controls(PlaceHolder PlaceHolder, Custom_Tracer Tracer)
        {
            Tracer.Add_Trace("New_Group_And_Item_MySobekViewer.add_upload_controls", String.Empty);

            StringBuilder filesBuilder = new StringBuilder(2000);
            filesBuilder.AppendLine("<script src=\"" + Static_Resources_Gateway.Sobekcm_Metadata_Js + "\" type=\"text/javascript\"></script>");
            filesBuilder.AppendLine("Add a new page image for this package:");
            filesBuilder.AppendLine("<blockquote>");

            LiteralControl filesLiteral2 = new LiteralControl(filesBuilder.ToString());
            PlaceHolder.Controls.Add(filesLiteral2);
            filesBuilder.Remove(0, filesBuilder.Length);

            UploadiFiveControl uploadControl = new UploadiFiveControl
            {
                UploadPath = digitalResourceDirectory,
                UploadScript = RequestSpecificValues.Current_Mode.Base_URL + "UploadiFiveFileHandler.ashx",
                AllowedFileExtensions = UI_ApplicationCache_Gateway.Settings.Resources.Upload_Image_Types,
                SubmitWhenQueueCompletes = true,
                RemoveCompleted = true,
                Swf = Static_Resources_Gateway.Uploadify_Swf,
                RevertToFlashVersion = true
            };
            PlaceHolder.Controls.Add(uploadControl);

            filesBuilder.AppendLine("</blockquote><br />");

            LiteralControl literal1 = new LiteralControl(filesBuilder.ToString());
            PlaceHolder.Controls.Add(literal1);
        }
        private void add_upload_controls_tei(PlaceHolder MainPlaceholder, string Prompt, string AllowedFileExtensions, Custom_Tracer Tracer)
        {
            Tracer.Add_Trace("New_TEI_MySobekViewer.add_upload_controls", String.Empty);

            StringBuilder filesBuilder = new StringBuilder(2000);
            filesBuilder.AppendLine("<script src=\"" + Static_Resources_Gateway.Sobekcm_Metadata_Js + "\" type=\"text/javascript\"></script>");

            if (currentProcessStep == 2)
            {
                filesBuilder.AppendLine(Prompt);
                filesBuilder.AppendLine("<blockquote>");

                LiteralControl filesLiteral2 = new LiteralControl(filesBuilder.ToString());
                MainPlaceholder.Controls.Add(filesLiteral2);
                filesBuilder.Remove(0, filesBuilder.Length);

                UploadiFiveControl uploadControl = new UploadiFiveControl();
                uploadControl.UploadPath = userInProcessDirectory;
                uploadControl.UploadScript = RequestSpecificValues.Current_Mode.Base_URL + "UploadiFiveFileHandler.ashx";
                uploadControl.AllowedFileExtensions = AllowedFileExtensions;
                uploadControl.SubmitWhenQueueCompletes = true;
                uploadControl.RemoveCompleted = true;
                uploadControl.Swf = Static_Resources_Gateway.Uploadify_Swf;
                uploadControl.RevertToFlashVersion = true;
                uploadControl.QueueSizeLimit = 1;
                uploadControl.ButtonText = "Select TEI File";
                uploadControl.ButtonWidth = 175;
                MainPlaceholder.Controls.Add(uploadControl);

                filesBuilder.AppendLine("</blockquote><br />");
            }

            LiteralControl literal1 = new LiteralControl(filesBuilder.ToString());
            MainPlaceholder.Controls.Add(literal1);
        }