Merge branch 'develop' into working

This commit is contained in:
Suphonchai Phoonsawat 2023-08-04 14:30:36 +07:00
commit f29f59088a
3 changed files with 86 additions and 35 deletions

View file

@ -276,7 +276,8 @@ namespace BMA.EHR.Application.Repositories
var request = new PutObjectRequest
{
BucketName = $"{_bucketName}{subFolder}",
BucketName = $"{_bucketName}",
// BucketName = $"{_bucketName}{subFolder}",
Key = file_name,
InputStream = filestream,
ContentType = fileType,
@ -297,7 +298,7 @@ namespace BMA.EHR.Application.Repositories
if (!Directory.Exists(tmpDir))
Directory.CreateDirectory(tmpDir);
var tmpFile = Path.Combine(tmpDir, $"tmp_{DateTime.Now.ToString("ddMMyyyyHHmmss")}{fileName}.json");
var tmpFile = Path.Combine(tmpDir, $"{fileName}.json");
try
{