From 905274fcd0e8df2eb1cb1e8003e61dfb3ff9f27e Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Tue, 26 Oct 2021 20:09:50 +0800 Subject: [PATCH] feat(oss): no need to clear the temporary directory --- .../LINGYUN/Abp/OssManagement/FileUploader.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/FileUploader.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/FileUploader.cs index a3cc4cc53..91f2ae532 100644 --- a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/FileUploader.cs +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/FileUploader.cs @@ -33,12 +33,6 @@ namespace LINGYUN.Abp.OssManagement try { - // 重新开始 - if (input.ChunkNumber == 1) - { - DirectoryHelper.DeleteIfExists(tempFilePath); - } - DirectoryHelper.CreateIfNotExists(tempFilePath); if (cancellationToken.IsCancellationRequested)