Hidistro.UI.Common.Controls/UploadHandler.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.Common.Controls
{
using Hidistro.Core;
using System;
using System.Globalization;
using System.IO;
using System.Text.RegularExpressions;
using System.Web;
public class UploadHandler : IHttpHandler
{
private string action;
private string uploaderId;
private string uploadType;
private void DoDelete(HttpContext context)
{
string path = context.Request.MapPath(Globals.ApplicationPath + context.Request.Form[this.uploaderId + "_uploadedImageUrl"]);
string str2 = path.Replace(@"\images\", @"\thumbs40\40_");
string str3 = path.Replace(@"\images\", @"\thumbs60\60_");
string str4 = path.Replace(@"\images\", @"\thumbs100\100_");
string str5 = path.Replace(@"\images\", @"\thumbs160\160_");
string str6 = path.Replace(@"\images\", @"\thumbs180\180_");
string str7 = path.Replace(@"\images\", @"\thumbs220\220_");
string str8 = path.Replace(@"\images\", @"\thumbs310\310_");
string str9 = path.Replace(@"\images\", @"\thumbs410\410_");
if (File.Exists(path))
{
File.Delete(path);
}
if (File.Exists(str2))
{
File.Delete(str2);
}
if (File.Exists(str3))
{
File.Delete(str3);
}
if (File.Exists(str4))
{
File.Delete(str4);
}
if (File.Exists(str5))
{
File.Delete(str5);
}
if (File.Exists(str6))
{
File.Delete(str6);
}
if (File.Exists(str7))
{
File.Delete(str7);
}
if (File.Exists(str8))
{
File.Delete(str8);
}
if (File.Exists(str9))
{
后面还有 102 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
