Browse Source
Merge pull request #339 from colinin/4.4
improving oss modules
pull/364/head
yx lin
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
16 additions and
8 deletions
-
aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/FileUploader.cs
-
aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Domain.Shared/LINGYUN/Abp/OssManagement/Localization/Resources/en.json
-
aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Domain.Shared/LINGYUN/Abp/OssManagement/Localization/Resources/zh-Hans.json
|
|
@ -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) |
|
|
|
|
|
@ -50,6 +50,13 @@ |
|
|
"Features:DisplayName:UploadInterval": "Limit Uploads Interval", |
|
|
"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: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: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" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -50,6 +50,13 @@ |
|
|
"Features:DisplayName:UploadInterval": "限制上传文件周期", |
|
|
"Features:DisplayName:UploadInterval": "限制上传文件周期", |
|
|
"Features:Description:UploadInterval": "限制上传文件次数的更新周期,时间刻度为:月,默认:1", |
|
|
"Features:Description:UploadInterval": "限制上传文件次数的更新周期,时间刻度为:月,默认:1", |
|
|
"Features:DisplayName:MaxUploadFileCount": "上传文件数量", |
|
|
"Features:DisplayName:MaxUploadFileCount": "上传文件数量", |
|
|
"Features:Description:MaxUploadFileCount": "用户单次上传文件的限制数量" |
|
|
"Features:Description:MaxUploadFileCount": "用户单次上传文件的限制数量", |
|
|
|
|
|
"Objects:UploadFile": "上传文件", |
|
|
|
|
|
"Upload:SelectFile": "选择文件", |
|
|
|
|
|
"Upload:Completed": "完成", |
|
|
|
|
|
"Upload:Error": "错误", |
|
|
|
|
|
"Upload:Pause": "暂停", |
|
|
|
|
|
"Upload:Resume": "重传", |
|
|
|
|
|
"Upload:Cancel": "取消" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |