Browse Source

Merge pull request #339 from colinin/4.4

improving oss modules
pull/364/head
yx lin 4 years ago
committed by GitHub
parent
commit
8a03e66f01
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/FileUploader.cs
  2. 9
      aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Domain.Shared/LINGYUN/Abp/OssManagement/Localization/Resources/en.json
  3. 9
      aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Domain.Shared/LINGYUN/Abp/OssManagement/Localization/Resources/zh-Hans.json

6
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)

9
aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Domain.Shared/LINGYUN/Abp/OssManagement/Localization/Resources/en.json

@ -50,6 +50,13 @@
"Features:DisplayName:UploadInterval": "Limit Uploads Interval",
"Features:Description:UploadInterval": "The update period that limits the number of files uploaded. The time scale is: month. Default: 1",
"Features:DisplayName:MaxUploadFileCount": "Maximum number of upload files",
"Features:Description:MaxUploadFileCount": "Limit the number of files a user uploads at a time"
"Features:Description:MaxUploadFileCount": "Limit the number of files a user uploads at a time",
"Objects:UploadFile": "Upload File",
"Upload:SelectFile": "Select File",
"Upload:Completed": "Completed",
"Upload:Error": "Error",
"Upload:Pause": "Pause",
"Upload:Resume": "Resume",
"Upload:Cancel": "Cancel"
}
}

9
aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Domain.Shared/LINGYUN/Abp/OssManagement/Localization/Resources/zh-Hans.json

@ -50,6 +50,13 @@
"Features:DisplayName:UploadInterval": "限制上传文件周期",
"Features:Description:UploadInterval": "限制上传文件次数的更新周期,时间刻度为:月,默认:1",
"Features:DisplayName:MaxUploadFileCount": "上传文件数量",
"Features:Description:MaxUploadFileCount": "用户单次上传文件的限制数量"
"Features:Description:MaxUploadFileCount": "用户单次上传文件的限制数量",
"Objects:UploadFile": "上传文件",
"Upload:SelectFile": "选择文件",
"Upload:Completed": "完成",
"Upload:Error": "错误",
"Upload:Pause": "暂停",
"Upload:Resume": "重传",
"Upload:Cancel": "取消"
}
}
Loading…
Cancel
Save