0
maxim@kolychev.msk.ru created
- ABP Framework version: v7.3.0
- UI type: MVC
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): no
- Exception message and stack trace: No Exception
Code In DocManager Class:
`
private readonly IBlobContainer _docContainer;
...
public async Task SaveFileAsync(string fileName, Stream stream, bool overrideExisting)
{
//await _docContainer.SaveAsync(fileName, stream, overrideExisting: overrideExisting);
//Work fine with abp v7.2.2
//After upgrade to abp v7.3 save 0 bytes
var content = await stream.GetAllBytesAsync();
await _docContainer.SaveAsync(fileName, content, overrideExisting: overrideExisting);
//Work fine!
}`
Code in DomainModule class
Configure<AbpBlobStoringOptions>(options =>
{
options.Containers.ConfigureDefault(container =>
{
container.UseFileSystem(fileSystem =>
{
fileSystem.BasePath = configuration["App:BlobBasePath"] ?? DocumentConsts.DefaultBlobBasePath;
});
});
});
1 Answer(s)
-
0