⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 constants.cs

📁 PowUpload的C#源文件,用来做大文件上传的项目
💻 CS
字号:
namespace ElementIT.PowUpload
{
    using System;

    internal class Constants
    {
        internal const string ApplicationNameForEventLog = "PowUpload";
        internal const string CantConvertbufferSize = "Cannot convert bufferSize to an integer. Set a correct value of the bufferSize attribute in the Web.config file or in Settings class!";
        internal const string CantFindUploadWithid = "An upload process with the ID {0} has not been initialized.";
        internal const string ClientFilePathEmptyCantRunMethod = "The client file path is empty (the file was not selected in the form). You cannot run this method.";
        internal const string ConfigKeyIsEmpty = "Required key {0} is empty in the Web.config file. Specify it at the {1} section of the \"Element-IT.PowUpload\" section.";
        internal const string ConfigKeyNotFound = "Key {0} not found in the Web.config file. Specify it at the {1} section of the \"Element-IT.PowUpload\" section.";
        internal const string ConfigSectionNotFound = "Section {0} not found in the Web.config file. Specify it at the \"Element-IT.PowUpload\" section.";
        internal const string ContentRangeBeginEndDelimiter = "-";
        internal const string ContentRangeLengthDelimiter = "/";
        internal const string ContentTypeMultipart = "multipart/form-data";
        internal const int CountApproximatePoints = 20;
        internal const string DefaultBandwidthLimit = "-1";
        internal const string DefaultBufferSize = "16384";
        internal const string DefaultHttpRuntimeMaxRequestLength = "4194304";
        internal const string DefaultIgnoreHttpRuntimeMaxRequestLength = "true";
        internal const string DefaultIgnorePages = "";
        internal const string DefaultLogExceptions = "false";
        internal const string DefaultMaxRequestLength = "-1";
        internal const string DefaultMaxRequestLengthToCloseConnection = "-1";
        internal const string DefaultMinRequestLengthProcess = "-1";
        internal const string DefaultPassForm = "true";
        internal const string DefaultProcessPages = "*.aspx";
        internal const string DefaultPutCookieNameForUserId = "ASP.NET_SessionId";
        internal const string DefaultPutUseCookiesForUserId = "true";
        internal const string DefaultPutUseIpForUserId = "true";
        internal const string DefaultPutUseJuploadIdForUserId = "true";
        internal const string DefaultPutUseSessionIdForUserId = "false";
        internal const string DefaultTempPath = @"C:\Temp\";
        internal const string DefaultThrowErrorsImmediately = "true";
        internal const string DefaultUploadIDQuery = "UploadID";
        internal const string DefaultWriteDebugLogs = "false";
        internal const string EmptyValue = "The value cannot be empty";
        internal const string FileAlreadyExists = "File {0} already exists. Set the overwrite parameter to \"true\" to overwtite the file.";
        internal const string FileIsInTempFolder = "The original file is in the temp folder. Full path of the file: {0}";
        internal const string FileNAlreadyExists = "File {0} already exists.";
        internal const string FileNotSaved = "The original file was not saved.";
        internal const string FolderNotFoundAndCantCreate = "The folder {0} does not exist and cannot be created!";
        internal const string HeaderContentDisposition = "Content-Disposition";
        internal const string HeaderContentType = "Content-Type";
        internal const string HeaderXContentLength = "XContent-Length";
        internal const string HeaderXJuploadID = "X-JUpload-ID";
        internal const double HowOftenToCheckCollections = 30;
        internal const string HttpContextWorkerRequestName = "WorkerRequest";
        internal const string idEmpty = "The id parameter cannot be empty.";
        internal const string IUploadHandleName = "IUploadHandle";
        internal const int MaxBufferSize = 0x10000;
        internal const string MaxRequestLengthException = "Maximum request length exceeded.";
        internal const double MaxTimeToLivePersonalSettingsAfterCreated = 1440;
        internal const double MaxTimeToLiveProcessProgressAfterFinish = 60;
        internal const double MaxTimeToLiveProcessProgressAfterStart = 1440;
        internal const double MaxTimeToLiveUnuploadedFileAfterFinish = 60;
        internal const double MaxTimeToLiveUnuploadedFileAfterStart = 60;
        internal const string MethodCanBeExecuted = "Method or property can't be executed while file upload not complete!";
        internal const string MethodNameHead = "head";
        internal const string MethodNamePost = "post";
        internal const string MethodNamePut = "put";
        internal const string ProcessUploadClassName = "ProcessUpload";
        internal const string ProcessUploadPutClassName = "ProcessUploadPut";
        internal const string TempFilesExt = ".tmp";
        internal const string UploadModuleName = "ElementIT.PowUpload.UploadModule";
        internal const string UploadModuleNotFound = "PowUpload module not found! You may be forgot to add the <httpModules> section in the Web.config file.";
        internal const string UploadStateCancelled = "Upload canceled";
        internal const string UploadStateComplete = "Upload completed";
        internal const string UploadStateConnectionClosed = "Connection closed";
        internal const string UploadStateError = "An error was occured";
        internal const string UploadStateRejected = "Upload rejected";
        internal const string UploadStateUploading = "Uploading files";
        internal const string UploadStateWaiting = "Waiting for upload";
        internal const string WebConfigHttpRuntimeSection = "system.web/httpRuntime";
        internal const string WebConfigMaxRequestLength = "maxRequestLength";
        internal const string WebConfigPowUploadSection = "Element-IT.PowUpload/";
        internal const string WebConfigSettingsSection = "settings";
        internal const string WorkerRequestNameISAPI = "System.Web.Hosting.ISAPIWorkerRequest";
        internal const string WorkerRequestNameWebHost = "Microsoft.VisualStudio.WebHost.Request";
        internal const string WrongAssembly = "You are executing Element-IT.PowUpload.dll assembly for .NET Framework 1.1 or higher under .NET Framework 1.0! Please use another assembly. You can find assembly for .NET Framework 1.0 in PowUpload distribution package.";
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -