JumboTCMS_src/JumboTCMS.Utils/FilepPocessor.cs
(开头部分) 23KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* 程序名称: JumboTCMS(将博内容管理系统通用版)
*
* 程序版本: 7.x
*
* 程序作者: 子木将博 (QQ:791104444@qq.com,仅限商业合作)
*
* 版权申明: http://www.jumbotcms.net/about/copyright.html
*
* 技术答疑: http://forum.jumbotcms.net/
*
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.IO;
using System.Threading;
namespace JumboTCMS.Utils
{
/// <summary>
/// FileProcessor is used to process byte data from a multi-part form and save it to the disk.
/// </summary>
public class FileProcessor : IDisposable
{
#region "Class Vars"
/// <summary>
/// Default folder to where the files are to be uploaded.
/// </summary>
private string _currentFilePath = "";
/// <summary>
/// Form post id is used in finding field seperators in the multi-part form post
/// </summary>
private string _formPostID = "";
/// <summary>
/// Used to find the start of a file
/// </summary>
private string _fieldSeperator = "";
/// <summary>
/// Used to note what buffer index we are on in the collection
/// </summary>
private long _currentBufferIndex = 0;
/// <summary>
/// Used to flag each byte process if we have already found the start of a file or not
/// </summary>
private bool _startFound = false;
/// <summary>
/// Used to flag each byte process if we have already found the end of a file.
/// </summary>
private bool _endFound = false;
/// <summary>
后面还有 517 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。