Obsolete the FileUploadLocalFolder

pull/5573/head
liangshiwei 4 years ago
parent 83e1a78e79
commit e99ea38300

@ -132,11 +132,6 @@ namespace Volo.BloggingTestApp
options.DefaultThemeName = BasicTheme.Name;
});
Configure<BlogFileOptions>(options =>
{
options.FileUploadLocalFolder = Path.Combine(hostingEnvironment.WebRootPath, "files");
});
Configure<AbpBlobStoringOptions>(options =>
{
options.Containers.ConfigureDefault(container =>

@ -1,4 +1,6 @@
namespace Volo.Blogging.Files
using System;
namespace Volo.Blogging.Files
{
/* TODO:
* - It is not to have different options for all different modules. We should find a more generic way.
@ -6,6 +8,7 @@
*/
public class BlogFileOptions
{
[Obsolete("Now store using blob storing system, will be deleted in a next version")]
public string FileUploadLocalFolder { get; set; }
}
}

@ -13,14 +13,11 @@ namespace Volo.Blogging.Files
public class FileAppService : BloggingAppServiceBase, IFileAppService
{
protected IBlobContainer<BloggingFileContainer> BlobContainer { get; }
public BlogFileOptions Options { get; }
public FileAppService(
IOptions<BlogFileOptions> options,
IBlobContainer<BloggingFileContainer> blobContainer)
{
BlobContainer = blobContainer;
Options = options.Value;
}
public virtual async Task<RawFileDto> GetAsync(string name)

Loading…
Cancel
Save