public DnnFileUploadOptions()
 {
     FolderPicker = new DnnDropDownListOptions();
     MaxFileSize  = (int)Config.GetMaxUploadSize();
     Extensions   = new List <string>();
     Resources    = new DnnFileUploadResources
     {
         Title                   = Utilities.GetLocalizedString("FileUpload.Title.Text"),
         DialogHeader            = Utilities.GetLocalizedString("FileUpload.DialogHeader.Text"),
         DecompressLabel         = Utilities.GetLocalizedString("FileUpload.DecompressLabel.Text"),
         UploadToFolderLabel     = Utilities.GetLocalizedString("FileUpload.UploadToFolderLabel.Text"),
         DragAndDropAreaTitle    = Utilities.GetLocalizedString("FileUpload.DragAndDropAreaTitle.Text"),
         UploadFileMethod        = Utilities.GetLocalizedString("FileUpload.UploadFileMethod.Text"),
         UploadFromWebMethod     = Utilities.GetLocalizedString("FileUpload.UploadFromWebMethod.Text"),
         CloseButtonText         = Utilities.GetLocalizedString("FileUpload.CloseButton.Text"),
         UploadFromWebButtonText = Utilities.GetLocalizedString("FileUpload.UploadFromWebButton.Text"),
         DecompressingFile       = Utilities.GetLocalizedString("FileUpload.DecompressingFile.Text"),
         FileIsTooLarge          = string.Format(Utilities.GetLocalizedString("FileUpload.FileIsTooLarge.Error") + " Kb", (MaxFileSize / 1024).ToString(CultureInfo.InvariantCulture)),
         FileUploadCancelled     = Utilities.GetLocalizedString("FileUpload.FileUploadCancelled.Error"),
         FileUploadFailed        = Utilities.GetLocalizedString("FileUpload.FileUploadFailed.Error"),
         TooManyFiles            = Utilities.GetLocalizedString("FileUpload.TooManyFiles.Error"),
         InvalidFileExtensions   = Utilities.GetLocalizedString("FileUpload.InvalidFileExtensions.Error"),
         FileUploaded            = Utilities.GetLocalizedString("FileUpload.FileUploaded.Text"),
         EmptyFileUpload         = Utilities.GetLocalizedString("FileUpload.EmptyFileUpload.Error"),
         FileAlreadyExists       = Utilities.GetLocalizedString("FileUpload.FileAlreadyExists.Error"),
         ErrorDialogTitle        = Utilities.GetLocalizedString("FileUpload.ErrorDialogTitle.Text"),
         UploadStopped           = Utilities.GetLocalizedString("FileUpload.UploadStopped.Text"),
         UrlTooltip              = Utilities.GetLocalizedString("FileUpload.UrlTooltip.Text"),
         KeepButtonText          = Utilities.GetLocalizedString("FileUpload.KeepButton.Text"),
         ReplaceButtonText       = Utilities.GetLocalizedString("FileUpload.ReplaceButton.Text"),
     };
 }
 public DnnFileUploadOptions()
 {
     FolderPicker = new DnnDropDownListOptions();
     MaxFileSize = (int)Config.GetMaxUploadSize();
     Extensions = new List<string>();
     Resources = new DnnFileUploadResources
     {
         Title = Utilities.GetLocalizedString("FileUpload.Title.Text"),
         DialogHeader = Utilities.GetLocalizedString("FileUpload.DialogHeader.Text"),
         DecompressLabel = Utilities.GetLocalizedString("FileUpload.DecompressLabel.Text"),
         UploadToFolderLabel = Utilities.GetLocalizedString("FileUpload.UploadToFolderLabel.Text"),
         DragAndDropAreaTitle = Utilities.GetLocalizedString("FileUpload.DragAndDropAreaTitle.Text"),
         UploadFileMethod = Utilities.GetLocalizedString("FileUpload.UploadFileMethod.Text"),
         UploadFromWebMethod = Utilities.GetLocalizedString("FileUpload.UploadFromWebMethod.Text"),
         CloseButtonText = Utilities.GetLocalizedString("FileUpload.CloseButton.Text"),
         UploadFromWebButtonText = Utilities.GetLocalizedString("FileUpload.UploadFromWebButton.Text"),
         DecompressingFile = Utilities.GetLocalizedString("FileUpload.DecompressingFile.Text"),
         FileIsTooLarge = string.Format(Utilities.GetLocalizedString("FileUpload.FileIsTooLarge.Error") + " Mb", (MaxFileSize / (1024 * 1024)).ToString(CultureInfo.InvariantCulture)),
         FileUploadCancelled = Utilities.GetLocalizedString("FileUpload.FileUploadCancelled.Error"),
         FileUploadFailed = Utilities.GetLocalizedString("FileUpload.FileUploadFailed.Error"),
         TooManyFiles = Utilities.GetLocalizedString("FileUpload.TooManyFiles.Error"),
         InvalidFileExtensions = Utilities.GetLocalizedString("FileUpload.InvalidFileExtensions.Error"),
         FileUploaded = Utilities.GetLocalizedString("FileUpload.FileUploaded.Text"),
         EmptyFileUpload = Utilities.GetLocalizedString("FileUpload.EmptyFileUpload.Error"),
         FileAlreadyExists = Utilities.GetLocalizedString("FileUpload.FileAlreadyExists.Error"),
         ErrorDialogTitle = Utilities.GetLocalizedString("FileUpload.ErrorDialogTitle.Text"),
         UploadStopped = Utilities.GetLocalizedString("FileUpload.UploadStopped.Text"),
         UrlTooltip = Utilities.GetLocalizedString("FileUpload.UrlTooltip.Text"),
         KeepButtonText = Utilities.GetLocalizedString("FileUpload.KeepButton.Text"),
         ReplaceButtonText = Utilities.GetLocalizedString("FileUpload.ReplaceButton.Text"),
     };
 }