อัพ json เกษียญ

This commit is contained in:
Kittapath 2023-08-04 11:16:47 +07:00
parent 7a05335f22
commit ca945ebad6
3 changed files with 84 additions and 33 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
{