fix: 修复文件上传问题

This commit is contained in:
橙子
2025-02-06 11:41:56 +08:00
parent 2c48b8f881
commit 9c94953e0e
5 changed files with 137 additions and 3 deletions

View File

@@ -99,10 +99,14 @@ public class FileManager : DomainService, IFileManager
this.LoggerFactory.CreateLogger<FileManager>().LogInformation(exception, exception.Message);
}
catch (Exception exception)
{
this.LoggerFactory.CreateLogger<FileManager>().LogError(exception, exception.Message);
}
finally
{
//如果失败了,直接复制一份到缩略图上即可
compressImageStream = fileStream;
this.LoggerFactory.CreateLogger<FileManager>().LogError(exception, exception.Message);
}