Browse Source

feat(oss): no need to clear the temporary directory

pull/339/head
cKey 4 years ago
parent
commit
905274fcd0
  1. 6
      aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/FileUploader.cs

6
aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/FileUploader.cs

@ -33,12 +33,6 @@ namespace LINGYUN.Abp.OssManagement
try try
{ {
// 重新开始
if (input.ChunkNumber == 1)
{
DirectoryHelper.DeleteIfExists(tempFilePath);
}
DirectoryHelper.CreateIfNotExists(tempFilePath); DirectoryHelper.CreateIfNotExists(tempFilePath);
if (cancellationToken.IsCancellationRequested) if (cancellationToken.IsCancellationRequested)

Loading…
Cancel
Save