feat:完成文件上传功能

This commit is contained in:
橙子
2023-12-16 15:02:57 +08:00
parent 6188786d12
commit 6f72141616
5 changed files with 5591 additions and 1489 deletions

View File

@@ -57,10 +57,10 @@ namespace Yi.Framework.Rbac.Application.Services
}
var path = file.FilePath;
//如果为缩略图,需要修改路径
if (isThumbnail is true)
{
path = $"wwwroot/{FileTypeEnum.Thumbnail}/{file.Id}{Path.GetExtension(file.FileName)}";
}
//if (isThumbnail is true)
//{
// path = $"wwwroot/{FileTypeEnum.Thumbnail}/{file.Id}{Path.GetExtension(file.FileName)}";
//}
//路径为: 文件路径/文件id+文件扩展名
if (!File.Exists(path))