From a432bb51d5f23869725d3cf4132810c6c3bd3799 Mon Sep 17 00:00:00 2001 From: wanghaomei Date: Tue, 27 Sep 2022 11:30:57 +0800 Subject: [PATCH] =?UTF-8?q?DateTime.Now.Ticks=E6=9E=81=E7=AB=AF=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E5=87=BA=E7=8E=B0=E4=BA=86=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=EF=BC=8C=E6=8D=A2guid=E8=AF=95=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MailSend.Web/Controllers/MailController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MailSend.Web/Controllers/MailController.cs b/MailSend.Web/Controllers/MailController.cs index 1a0a8e6..4c0948b 100644 --- a/MailSend.Web/Controllers/MailController.cs +++ b/MailSend.Web/Controllers/MailController.cs @@ -127,7 +127,7 @@ namespace MailSend.Web.Controllers { var bsArr = Convert.FromBase64String(att.AttachContent); var ext = Path.GetExtension(att.AttachName); - var fileTmpName = DateTime.Now.Ticks.ToString(); + var fileTmpName = Guid.NewGuid().ToString(); var tempPath = Server.MapPath("~/Temp"); if (!Directory.Exists(tempPath)) {