|
@@ -90,9 +90,9 @@ public class DefaultFileStorage : IFileStorage, IScopeDependency
|
|
|
throw new UserFriendlyException("无权限访问");
|
|
|
}
|
|
|
|
|
|
- public (Stream stream, string contentType, string fileName) DownLoadFile(string id, string clientId)
|
|
|
+ public (Stream stream, string contentType, string fileName) DownLoadFile(string id)
|
|
|
{
|
|
|
- var fileMetadata = _fileMetadataRepository.Get(x => x.Id == id && x.Client == clientId);
|
|
|
+ var fileMetadata = _fileMetadataRepository.Get(x => x.Id == id);
|
|
|
if (fileMetadata != null)
|
|
|
{
|
|
|
string filePath = Path.Combine(Directory.GetCurrentDirectory(), fileMetadata.Path);
|